aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libosmocc/message.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libosmocc/message.c b/src/libosmocc/message.c
index ab66a9f..6dc7a7f 100644
--- a/src/libosmocc/message.c
+++ b/src/libosmocc/message.c
@@ -35,6 +35,8 @@
#define _OSMO_CC_NAME2VALUE(array) { \
int value; \
for (value = 0; (size_t)value < (sizeof(array) / sizeof(array[0])); value++) { \
+ if (!array[value]) \
+ continue; \
if (!strcasecmp(array[value], name)) \
return value; \
} \