Skip to content

Commit

Permalink
bee-cache-inventory: avoid printing null pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Ruester committed Aug 30, 2012
1 parent 1e0dbd3 commit 9e983bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bee-cache-inventory.c
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,8 @@ int inventory_dirfile(char *indname, char *outfname, struct inventory_meta meta)

res = inventory_fhfh(infh, outfh, meta);
if (!res) {
fprintf(stderr, "inventarization from %s/%s/CONTENT to %s failed: %m\n", indname, dirname, outfname);
fprintf(stderr, "inventarization from %s/%s/CONTENT to %s failed: %m\n",
indname, dirname, outfname ? outfname : "stdout");
fclose(infh);
goto closeoutfh;
}
Expand Down

0 comments on commit 9e983bd

Please sign in to comment.