summaryrefslogtreecommitdiff
path: root/src/authutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/authutil.c')
-rw-r--r--src/authutil.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/authutil.c b/src/authutil.c
index 04c0791..ca0504a 100644
--- a/src/authutil.c
+++ b/src/authutil.c
@@ -114,8 +114,10 @@ IceAuthFileName (void)
if (buf)
free (buf);
buf = malloc (size);
- if (!buf)
+ if (!buf) {
+ bsize = 0;
return (NULL);
+ }
bsize = size;
}