From 8268f67015f9659a2f63dc26702a5a49d3fa6c2a Mon Sep 17 00:00:00 2001 From: Philipp Takacs Date: Sat, 24 Oct 2015 12:16:58 +0200 Subject: [PATCH] set psigint befor the setjmp in prompter this mutes a Compielerwarning. --- uip/prompter.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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: -- 1.7.10.4