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:
cd54528
)
This kind of paranoia is a debug option at best.
author
Rob Landley
<rob@landley.net>
Fri, 30 Jun 2006 16:36:56 +0000
(16:36 -0000)
committer
Rob Landley
<rob@landley.net>
Fri, 30 Jun 2006 16:36:56 +0000
(16:36 -0000)
libbb/xfuncs.c
patch
|
blob
|
history
diff --git
a/libbb/xfuncs.c
b/libbb/xfuncs.c
index 432fd60798cc72bdf24f4eed8140c11e73456bac..684d0a4fbbeb9698339f7b29ca3e39eaa31b5ea2 100644
(file)
--- a/
libbb/xfuncs.c
+++ b/
libbb/xfuncs.c
@@
-80,7
+80,7
@@
char * bb_xstrndup (const char *s, int n)
{
char *t;
- if (s == NULL)
+ if (
ENABLE_DEBUG &&
s == NULL)
bb_error_msg_and_die("bb_xstrndup bug");
t = xmalloc(++n);