mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Check for non-NULL
This commit is contained in:
parent
f2197f6bc2
commit
934c79cfe3
@ -146,6 +146,9 @@ void
|
||||
wipe_password (char *passwd)
|
||||
{
|
||||
char *p = passwd;
|
||||
|
||||
if (p == NULL)
|
||||
return;
|
||||
|
||||
for (;*p; p++)
|
||||
*p = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user