summaryrefslogtreecommitdiffstats
path: root/src/elfclassify.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/elfclassify.c')
-rw-r--r--src/elfclassify.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/elfclassify.c b/src/elfclassify.c
index 535cc49f..624bb861 100644
--- a/src/elfclassify.c
+++ b/src/elfclassify.c
@@ -827,7 +827,8 @@ process_current_path (int *status)
break;
case do_print0:
if (checks_passed == flag_print_matching)
- fwrite (current_path, strlen (current_path) + 1, 1, stdout);
+ if (fwrite (current_path, strlen (current_path) + 1, 1, stdout) < 1)
+ issue (errno, N_("writing to standard output"));
break;
case no_print:
if (!checks_passed)