summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2013-10-07 21:21:41 +0000
committerMarcus Meissner <marcus@jet.franken.de>2013-10-07 21:21:41 +0000
commit1a003f310b59785f2c03f500020302456762c0bc (patch)
tree11bd7b0754ea1a8970e6bd494016b12103ee9564 /packaging
parent62e4568e8e41517e2bfe249b9943a1e02c7f119b (diff)
downloadlibgphoto2-1a003f310b59785f2c03f500020302456762c0bc.tar.gz
coverity found some stuff
patch from: Jaromír Končický git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14560 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'packaging')
-rw-r--r--packaging/generic/print-camera-list.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packaging/generic/print-camera-list.c b/packaging/generic/print-camera-list.c
index 101c471bc..eab6ce968 100644
--- a/packaging/generic/print-camera-list.c
+++ b/packaging/generic/print-camera-list.c
@@ -165,9 +165,9 @@ print_version_comment(FILE *out,
unsigned int n;
if (out == NULL) { FATAL("Internal error: NULL out in print_version_comment()"); }
if (firstline != NULL) { fputs(firstline, out); }
- fputs(startline, out);
+ if (startline != NULL) { fputs(startline, out); }
fputs("Created from this library:", out);
- fputs(endline, out);
+ if (endline != NULL) { fputs(endline, out); }
for (n=0; (module_versions[n].name != NULL) && (module_versions[n].version_func != NULL); n++) {
const char *name = module_versions[n].name;
GPVersionFunc func = module_versions[n].version_func;