summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>1998-03-11 17:44:27 +0000
committerHerb Lewis <herb@samba.org>1998-03-11 17:44:27 +0000
commit4c6230afd2f144322c07c7e4c46147d3e5d2ddde (patch)
tree15a641f1e22b592e8fa9ff5b69831aedbcf82c32 /source3/utils
parentf7b48aada5289f8fb83f78051855fe5b42431d9f (diff)
downloadsamba-4c6230afd2f144322c07c7e4c46147d3e5d2ddde.tar.gz
samba-4c6230afd2f144322c07c7e4c46147d3e5d2ddde.tar.bz2
samba-4c6230afd2f144322c07c7e4c46147d3e5d2ddde.zip
fix core dumps on Solaris 2.5 systems found by Orn Asgeirsson
(This used to be commit bafc7768925109d0e8e87152054d37ec3f4e7fdd)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/make_printerdef.c18
1 files changed, 12 insertions, 6 deletions
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);
}