From: Philipp Takacs Date: Sat, 24 Oct 2015 10:16:58 +0000 (+0200) Subject: set psigint befor the setjmp in prompter X-Git-Tag: mmh-0.2-RC1~12 X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=8268f67015f9659a2f63dc26702a5a49d3fa6c2a;p=mmh set psigint befor the setjmp in prompter this mutes a Compielerwarning. --- diff --git a/uip/prompter.c b/uip/prompter.c index 0ca1e83..ae0c0c6 100644 --- a/uip/prompter.c +++ b/uip/prompter.c @@ -273,7 +273,7 @@ int getln(char *buffer, int n) { int c; - sig_atomic_t psigint; + sig_atomic_t psigint = sigint; char *cp; cp = buffer; @@ -282,7 +282,6 @@ getln(char *buffer, int n) switch (setjmp(sigenv)) { case 0: wtuser = 1; - psigint = sigint; break; default: