aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-10-10 13:02:08 -0700
committerChris Robinson <[email protected]>2022-10-10 13:02:08 -0700
commitb0cd7e09f905d110317b7726c718d153953f9c2d (patch)
tree2c9e9b6de2ace7d8e807710d5e58970ec0026966
parente131a8e5811e74fa7ab4e468282bddc6764b9fb5 (diff)
Don't pass null to fprintf
-rw-r--r--utils/makemhr/loadsofa.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/makemhr/loadsofa.cpp b/utils/makemhr/loadsofa.cpp
index d36306a7..a0f92cef 100644
--- a/utils/makemhr/loadsofa.cpp
+++ b/utils/makemhr/loadsofa.cpp
@@ -175,7 +175,7 @@ DelayType PrepareDelay(MYSOFA_HRTF *sofaHrtf)
}
else
fprintf(stderr, "Unexpected delay attribute: %s = %s\n", delay_attrs->name,
- delay_attrs->value);
+ delay_attrs->value ? delay_attrs->value : "<null>");
delay_attrs = delay_attrs->next;
}
if(!delay_dim)
@@ -210,7 +210,7 @@ bool CheckIrData(MYSOFA_HRTF *sofaHrtf)
}
else
fprintf(stderr, "Unexpected IR attribute: %s = %s\n", ir_attrs->name,
- ir_attrs->value);
+ ir_attrs->value ? ir_attrs->value : "<null>");
ir_attrs = ir_attrs->next;
}
if(!ir_dim)