bc/bc-dc-correct-return-value.patch

17 lines
540 B
Diff
Raw Normal View History

Index: bc-1.07.1/dc/eval.c
===================================================================
--- bc-1.07.1.orig/dc/eval.c 2017-04-07 17:22:07.000000000 +0200
+++ bc-1.07.1/dc/eval.c 2019-03-13 11:24:50.561897120 +0100
@@ -814,10 +814,10 @@ error_fail:
fprintf(stderr, "%s: ", progname);
perror("error reading input");
return DC_FAIL;
-reset_and_exit_quit:
reset_and_exit_fail:
signal(SIGINT, sigint_default);
return DC_FAIL;
+reset_and_exit_quit:
reset_and_exit_success:
signal(SIGINT, sigint_default);
return DC_SUCCESS;