This kind of paranoia is a debug option at best.
This commit is contained in:
parent
cd545287c5
commit
8bbdb8732f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user