From 547adae5f90ed83e9ade16bdd03945c8a1d42575 Mon Sep 17 00:00:00 2001 From: nhmall Date: Sun, 24 Dec 2023 00:23:15 -0500 Subject: [PATCH] follow-up invent.c --- src/invent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invent.c b/src/invent.c index e10e1eaf1..0b2cc72e9 100644 --- a/src/invent.c +++ b/src/invent.c @@ -4880,7 +4880,7 @@ mergable( if ((objnamelth != otmpnamelth && ((objnamelth && otmpnamelth) || obj->otyp == CORPSE)) || (objnamelth && otmpnamelth - /* safe_oname could have returned ptr to "", verify before deref */ + /* verify pointers before deref for static analyzer */ && has_oname(obj) && has_oname(otmp) && strncmp(ONAME(obj), ONAME(otmp), objnamelth))) return FALSE;