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
@ -147,6 +147,9 @@ wipe_password (char *passwd)
|
||||
{
|
||||
char *p = passwd;
|
||||
|
||||
if (p == NULL)
|
||||
return;
|
||||
|
||||
for (;*p; p++)
|
||||
*p = 0;
|
||||
g_free (passwd);
|
||||
|
Loading…
Reference in New Issue
Block a user