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 a4d58db9 for ; Tue, 9 Aug 2016 10:16:04 -0500 (EST) Date: Tue, 9 Aug 2016 10:16:04 -0500 (EST) Message-Id: <4225505201767708310.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: backport to 1.13: fix printf("%s", NULL) X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- backport to 1.13: fix printf("%s", NULL) Tags: ---- VERSION_1_13 Modified Files: -------------- mdocml: main.c Revision Data ------------- Index: main.c =================================================================== RCS file: /home/cvs/mdocml/mdocml/main.c,v retrieving revision 1.273 retrieving revision 1.273.2.1 diff -Lmain.c -Lmain.c -u -p -r1.273 -r1.273.2.1 --- main.c +++ main.c @@ -1006,7 +1006,8 @@ mmsg(enum mandocerr t, enum mandoclevel { const char *mparse_msg; - fprintf(stderr, "%s: %s:", getprogname(), file); + fprintf(stderr, "%s: %s:", getprogname(), + file == NULL ? "" : file); if (line) fprintf(stderr, "%d:%d:", line, col + 1); -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv