From 934c79cfe3a9ea8123aee8e7a6abd48426787e23 Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Fri, 29 Jan 1999 03:23:03 +0000 Subject: [PATCH] Check for non-NULL --- vfs/util-alone.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vfs/util-alone.c b/vfs/util-alone.c index 9abff080c..ce15d2434 100644 --- a/vfs/util-alone.c +++ b/vfs/util-alone.c @@ -146,6 +146,9 @@ void wipe_password (char *passwd) { char *p = passwd; + + if (p == NULL) + return; for (;*p; p++) *p = 0;