summaryrefslogtreecommitdiffstats
path: root/chars.c
diff options
context:
space:
mode:
Diffstat (limited to 'chars.c')
-rw-r--r--chars.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/chars.c b/chars.c
index c6d534d6..2dde4d5d 100644
--- a/chars.c
+++ b/chars.c
@@ -195,7 +195,8 @@ find(struct tbl *tab, const char *p, size_t sz, int type)
int hash;
assert(p);
- assert(sz > 0);
+ if (0 == sz)
+ return(NULL);
if (p[0] < PRINT_LO || p[0] > PRINT_HI)
return(NULL);