mirror of
https://git.busybox.net/busybox
synced 2026-02-07 20:50:26 +00:00
This kind of paranoia is a debug option at best.
This commit is contained in:
parent
cd545287c5
commit
8bbdb8732f
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue