From 4c6230afd2f144322c07c7e4c46147d3e5d2ddde Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Wed, 11 Mar 1998 17:44:27 +0000 Subject: fix core dumps on Solaris 2.5 systems found by Orn Asgeirsson (This used to be commit bafc7768925109d0e8e87152054d37ec3f4e7fdd) --- source3/utils/make_printerdef.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'source3/utils') diff --git a/source3/utils/make_printerdef.c b/source3/utils/make_printerdef.c index adf3b4c3e6..514773eb48 100644 --- a/source3/utils/make_printerdef.c +++ b/source3/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); } -- cgit