diff options
author | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2009-01-14 19:55:19 +0000 |
---|---|---|
committer | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2009-01-14 19:55:19 +0000 |
commit | d2354e63977f1d0386a8d5724db2ec90fb666824 (patch) | |
tree | a79c2dacfa8a2f152008b4cd7dbc9aa503af01e3 /ppdc/ppdc-source.cxx | |
parent | c168a833caab4209bdb0035d8918207d40013591 (diff) | |
download | cups-d2354e63977f1d0386a8d5724db2ec90fb666824.tar.gz |
Merge changes from CUPS 1.4svn-r8252.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@1123 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'ppdc/ppdc-source.cxx')
-rw-r--r-- | ppdc/ppdc-source.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ppdc/ppdc-source.cxx b/ppdc/ppdc-source.cxx index d95f2d6cc..b4e31fc52 100644 --- a/ppdc/ppdc-source.cxx +++ b/ppdc/ppdc-source.cxx @@ -3,7 +3,7 @@ // // Source class for the CUPS PPD Compiler. // -// Copyright 2007-2008 by Apple Inc. +// Copyright 2007-2009 by Apple Inc. // Copyright 2002-2007 by Easy Software Products. // // These coded instructions, statements, and computer programs are the @@ -3422,15 +3422,15 @@ ppdcSource::write_file(const char *f) // I - File to write quotef(fp, " Copyright \"%s\"\n", st->value); // Write other strings and values... - if (d->manufacturer->value) + if (d->manufacturer && d->manufacturer->value) quotef(fp, " Manufacturer \"%s\"\n", d->manufacturer->value); if (d->model_name->value) quotef(fp, " ModelName \"%s\"\n", d->model_name->value); - if (d->file_name->value) + if (d->file_name && d->file_name->value) quotef(fp, " FileName \"%s\"\n", d->file_name->value); - if (d->pc_file_name->value) + if (d->pc_file_name && d->pc_file_name->value) quotef(fp, " PCFileName \"%s\"\n", d->pc_file_name->value); - if (d->version->value) + if (d->version && d->version->value) quotef(fp, " Version \"%s\"\n", d->version->value); cupsFilePrintf(fp, " DriverType %s\n", driver_types[d->type]); |