From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]); by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id 6b33cc57; for ; Mon, 12 Oct 2015 16:10:24 -0500 (EST) Date: Mon, 12 Oct 2015 16:10:24 -0500 (EST) Message-Id: <8313130702207173076.enqueue@fantadrom.bsd.lv> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: Check the right pointer against NULL; fixing a pasto introduced X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- Check the right pointer against NULL; fixing a pasto introduced in the previous commit; found by Svyatoslav Mishyn with cppcheck. Modified Files: -------------- mdocml: mandoc_aux.c Revision Data ------------- Index: mandoc_aux.c =================================================================== RCS file: /home/cvs/mdocml/mdocml/mandoc_aux.c,v retrieving revision 1.6 retrieving revision 1.7 diff -Lmandoc_aux.c -Lmandoc_aux.c -u -p -r1.6 -r1.7 --- mandoc_aux.c +++ mandoc_aux.c @@ -95,7 +95,7 @@ mandoc_strdup(const char *ptr) char *p; p = strdup(ptr); - if (ptr == NULL) + if (p == NULL) err((int)MANDOCLEVEL_SYSERR, NULL); return p; } -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv