From: Mike Frysinger Date: Fri, 3 Apr 2009 22:48:10 +0000 (-0000) Subject: simplify maybe_die() slightly X-Git-Tag: 1_14_0~117 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=dfa9de71769f2ce9449b43f389962cc977663179;p=oweals%2Fbusybox.git simplify maybe_die() slightly --- diff --git a/shell/hush.c b/shell/hush.c index 6734c9212..efb20d91e 100644 --- a/shell/hush.c +++ b/shell/hush.c @@ -615,7 +615,8 @@ static void maybe_die(const char *notice, const char *msg) * but it SEGVs. ?! Oh well... explicit temp ptr works around that */ void FAST_FUNC (*fp)(const char *s, ...) = bb_error_msg_and_die; #if ENABLE_HUSH_INTERACTIVE - fp = (G_interactive_fd ? bb_error_msg : bb_error_msg_and_die); + if (G_interactive_fd) + fp = bb_error_msg; #endif fp(msg ? "%s: %s" : notice, notice, msg); }