Browse Source

fix default value if output-storage isn't specified

Change-Id: Id74d9aa608aa963b995f199b2943efd926b97635
changes/58/20558/4
Richard Fuchs 8 years ago
parent
commit
53a2165871
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      recording-daemon/main.c

+ 2
- 2
recording-daemon/main.c View File

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


Loading…
Cancel
Save