fix default value if output-storage isn't specified

Change-Id: Id74d9aa608aa963b995f199b2943efd926b97635
changes/58/20558/4
Richard Fuchs 8 years ago
parent 5ce19a8f9f
commit 53a2165871

@ -135,7 +135,7 @@ static void cleanup(void) {
static void options(int *argc, char ***argv) {
const char *os_str;
const char *os_str = NULL;
GOptionEntry e[] = {
{ "table", 't', 0, G_OPTION_ARG_INT, &ktable, "Kernel table rtpengine uses", "INT" },
@ -171,7 +171,7 @@ static void options(int *argc, char ***argv) {
} else if (!output_mixed && !output_single)
output_mixed = output_single = 1;
if (!strcmp(os_str, "file"))
if (!os_str || !strcmp(os_str, "file"))
output_storage = OUTPUT_STORAGE_FILE;
else if (!strcmp(os_str, "db"))
output_storage = OUTPUT_STORAGE_DB;

Loading…
Cancel
Save