aboutsummaryrefslogtreecommitdiff
path: root/src/symtab.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/symtab.c')
-rw-r--r--src/symtab.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/symtab.c b/src/symtab.c
index 652f859..d3fdf1d 100644
--- a/src/symtab.c
+++ b/src/symtab.c
@@ -228,6 +228,9 @@ grecs_symtab_remove(struct grecs_symtab *st, void *elt)
return ENOENT;
}
+ if (!entry)
+ return ENOENT;
+
syment_free(st, entry);
for (;;) {

Return to:

Send suggestions and report system problems to the System administrator.