In theory an fwrite can fail, if so, signal it by calling issue ().
Signed-off-by: Mark Wielaard <mark@klomp.org>
+2020-07-19 Mark Wielaard <mark@klomp.org>
+
+ * elfclassify.c (process_current_path): Handle fwrite failing.
+
2020-07-05 Mark Wielaard <mark@klomp.org>
* stack.c (module_callback): Don't assert if dwfl_module_info fails.
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)