Skip to content

Commit

Permalink
ptex-sys.h: correct invalid nullptr check
Browse files Browse the repository at this point in the history
  • Loading branch information
davvid committed Apr 17, 2024
1 parent 6921dba commit b4ccc0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ptex-sys/src/ptex-sys.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b4ccc0e

Please sign in to comment.