commit | dfa9de71769f2ce9449b43f389962cc977663179 | [log] [tgz] |
---|---|---|
author | Mike Frysinger <vapier@gentoo.org> | Fri Apr 03 22:48:10 2009 +0000 |
committer | Mike Frysinger <vapier@gentoo.org> | Fri Apr 03 22:48:10 2009 +0000 |
tree | ba971502e855d025beebca3c9b4843d1460d5b18 | |
parent | db2a9b683a49282750a36ed872f21814ad81c80e [diff] |
simplify maybe_die() slightly
diff --git a/shell/hush.c b/shell/hush.c index 6734c92..efb20d9 100644 --- a/shell/hush.c +++ b/shell/hush.c
@@ -615,7 +615,8 @@ * 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); }