fix failures found by randomconfig builds

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2013-12-31 23:22:36 +01:00
parent 61be8e46a8
commit 198b02f7dd
7 changed files with 34 additions and 13 deletions

View File

@ -30,15 +30,6 @@
#include "libbb.h"
void FAST_FUNC nuke_str(char *str)
{
if (str) {
while (*str)
*str++ = 0;
/* or: memset(str, 0, strlen(str)); - not as small as above */
}
}
/* Ask the user for a password.
* Return 1 without asking if PW has an empty password.
* Return -1 on EOF, error while reading input, or timeout.