SHA256
3
0
forked from pool/bc
bc/bc-dc-correct-return-value.patch
Petr Gajdos 5c2007659b - added patches
Correct return value after 'q' [bsc#1129038]
  + bc-dc-correct-return-value.patch

OBS-URL: https://build.opensuse.org/package/show/Base:System/bc?expand=0&rev=16
2019-03-13 10:51:45 +00:00

17 lines
540 B
Diff

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;