From bafc7768925109d0e8e87152054d37ec3f4e7fdd Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Wed, 11 Mar 1998 17:44:27 +0000 Subject: [PATCH] fix core dumps on Solaris 2.5 systems found by Orn Asgeirsson --- source/utils/make_printerdef.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/source/utils/make_printerdef.c b/source/utils/make_printerdef.c index adf3b4c3e60..514773eb48b 100644 --- a/source/utils/make_printerdef.c +++ b/source/utils/make_printerdef.c @@ -428,12 +428,18 @@ void scan_short_desc(FILE *fichier, char *short_desc) if (i) fprintf(stderr,"End of section found\n"); - fprintf(stderr,"CopyFiles: %s\n",copyfiles); - fprintf(stderr,"Datasection: %s\n",datasection); - fprintf(stderr,"Datafile: %s\n",datafile); - fprintf(stderr,"Driverfile: %s\n",driverfile); - fprintf(stderr,"Helpfile: %s\n",helpfile); - fprintf(stderr,"LanguageMonitor: %s\n",languagemonitor); + fprintf(stderr,"CopyFiles: %s\n", + copyfiles?copyfiles:"(null)"); + fprintf(stderr,"Datasection: %s\n", + datasection?datasection:"(null)"); + fprintf(stderr,"Datafile: %s\n", + datafile?datafile:"(null)"); + fprintf(stderr,"Driverfile: %s\n", + driverfile?driverfile:"(null)"); + fprintf(stderr,"Helpfile: %s\n", + helpfile?helpfile:"(null)"); + fprintf(stderr,"LanguageMonitor: %s\n", + languagemonitor?languagemonitor:"(null)"); if (copyfiles) scan_copyfiles(fichier,copyfiles); } -- 2.11.4.GIT