summaryrefslogtreecommitdiffstats
path: root/src/cmd/acme/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/acme/util.c')
-rw-r--r--src/cmd/acme/util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/acme/util.c b/src/cmd/acme/util.c
index d694634f..dc978095 100644
--- a/src/cmd/acme/util.c
+++ b/src/cmd/acme/util.c
@@ -276,6 +276,8 @@ runeeq(Rune *s1, uint n1, Rune *s2, uint n2)
{
if(n1 != n2)
return FALSE;
+ if(n1 == 0)
+ return TRUE;
return memcmp(s1, s2, n1*sizeof(Rune)) == 0;
}