aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2015-12-25 10:17:17 +0100
committerHarald Welte <laforge@gnumonks.org>2015-12-25 10:17:17 +0100
commitc3ca7eba180a784af75e98f5dada9e8c441d1a90 (patch)
tree3a1eef47d253d3ef13d008843d31620889f952fa
parent3d39f842337099f8aa219cf47302d647be0caf2f (diff)
don't return undefined strings from rua_cause_str()
-rw-r--r--src/rua_common.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rua_common.c b/src/rua_common.c
index 4499efe..fcb873e 100644
--- a/src/rua_common.c
+++ b/src/rua_common.c
@@ -90,6 +90,9 @@ char *rua_cause_str(RUA_Cause_t *cause)
get_value_string(rua_cause_misc_vals,
cause->choice.misc));
break;
+ default:
+ strcpy(buf, "unknown");
+ break;
}
return buf;
}