projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db2a9b6
)
simplify maybe_die() slightly
author
Mike Frysinger
<vapier@gentoo.org>
Fri, 3 Apr 2009 22:48:10 +0000
(22:48 -0000)
committer
Mike Frysinger
<vapier@gentoo.org>
Fri, 3 Apr 2009 22:48:10 +0000
(22:48 -0000)
shell/hush.c
patch
|
blob
|
history
diff --git
a/shell/hush.c
b/shell/hush.c
index 6734c921210cecea698e9572c2d2f4a1adfa70bc..efb20d91e43a46d74d429b68d71881d8c005bd39 100644
(file)
--- 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);
}