From: Ian Darwin Date: Thu, 12 Nov 1987 13:00:24 +0000 (+0000) Subject: Don't print ": " if progname is somehow trashed. X-Git-Tag: FILE3_27~347 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5d1bdda9fabb6e86cff390cb1ed84a8d4c40955b;p=file Don't print ": " if progname is somehow trashed. --- diff --git a/src/print.c b/src/print.c index 5a995886..8fb8b6b9 100644 --- a/src/print.c +++ b/src/print.c @@ -31,7 +31,7 @@ #ifndef lint static char *moduleid = - "@(#)$Header: /home/glen/git/file/cvs/file/src/print.c,v 1.9 1987/11/06 21:29:50 ian Exp $"; + "@(#)$Header: /home/glen/git/file/cvs/file/src/print.c,v 1.10 1987/11/12 13:00:24 ian Exp $"; #endif /* lint */ #define MAXSTR 500 @@ -81,10 +81,11 @@ char *f, *a; int myerrno; myerrno = errno; - if (progname != NULL) + if (progname != NULL) { (void) fputs(progname, stderr); - (void) putc(':', stderr); - (void) putc(' ', stderr); + (void) putc(':', stderr); + (void) putc(' ', stderr); + } (void) fprintf(stderr, f, a); if (myerrno > 0 && myerrno < sys_nerr) (void) fprintf(stderr, " (%s)", sys_errlist[myerrno]);