summaryrefslogtreecommitdiff
path: root/libinterp
diff options
context:
space:
mode:
Diffstat (limited to 'libinterp')
-rw-r--r--libinterp/keyring.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libinterp/keyring.c b/libinterp/keyring.c
index 3fa41249..6b44c16d 100644
--- a/libinterp/keyring.c
+++ b/libinterp/keyring.c
@@ -177,6 +177,8 @@ base64tobig(char *str, char **strp)
for(p = str; *p && *p != '\n'; p++)
;
+ if(p == str)
+ return nil;
n = dec64(hex, sizeof(hex), str, p - str);
b = betomp(hex, n, nil);
if(strp){