diff options
Diffstat (limited to 'libbb/nuke_str.c')
-rw-r--r-- | libbb/nuke_str.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/nuke_str.c b/libbb/nuke_str.c index 240e68004..b5385e956 100644 --- a/libbb/nuke_str.c +++ b/libbb/nuke_str.c | |||
@@ -12,7 +12,7 @@ | |||
12 | 12 | ||
13 | void FAST_FUNC nuke_str(char *str) | 13 | void FAST_FUNC nuke_str(char *str) |
14 | { | 14 | { |
15 | if (str) { | 15 | if (str) { |
16 | while (*str) | 16 | while (*str) |
17 | *str++ = 0; | 17 | *str++ = 0; |
18 | /* or: memset(str, 0, strlen(str)); - not as small as above */ | 18 | /* or: memset(str, 0, strlen(str)); - not as small as above */ |