diff --git a/src/lib/commands/surv.c b/src/lib/commands/surv.c index d3a27e8d..92117a7d 100644 --- a/src/lib/commands/surv.c +++ b/src/lib/commands/surv.c @@ -66,7 +66,7 @@ surv(void) nsect = 0; ptr = getstarg(player->argp[1], "commodity or variable? ", buf); - if (ptr == 0) + if (!ptr || !*ptr) return RET_SYN; ptr = nstr_comp_val(ptr, &val, EF_SECTOR); if (!ptr)