From b4ccc0eaa22f055a5a97b60fd0469b86338ad75a Mon Sep 17 00:00:00 2001 From: David Aguilar Date: Wed, 17 Apr 2024 01:16:44 -0700 Subject: [PATCH] ptex-sys.h: correct invalid nullptr check --- ptex-sys/src/ptex-sys.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ptex-sys/src/ptex-sys.h b/ptex-sys/src/ptex-sys.h index 09f2424..baffd83 100644 --- a/ptex-sys/src/ptex-sys.h +++ b/ptex-sys/src/ptex-sys.h @@ -469,7 +469,7 @@ inline void ptexmetadata_get_value_at_index(PtexMetaData *metadata, int index, M } inline void ptexmetadata_get_value_for_key(PtexMetaData *metadata, const char *key, MetaDataType typ, char const *&value, int &count) { - if (metadata && value) { + if (metadata) { switch (typ) { case Ptex::mdt_string: metadata->getValue(key, value);