Browse Source

MT#56128 add missing NULL checks

Silence warnings from Glib

Change-Id: I687ff4ad69da3a8782f686ed26399ffd45612357
pull/1692/head
Richard Fuchs 2 years ago
parent
commit
38344acb66
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      daemon/sdp.c

+ 2
- 2
daemon/sdp.c View File

@ -331,7 +331,7 @@ static int sdp_manipulate_check(enum command_type command_type,
ht = sdp_manipulations->subst_commands_glob;
}
str * l = g_hash_table_lookup(ht, attr_name);
str * l = ht ? g_hash_table_lookup(ht, attr_name) : NULL;
if (l)
return 1;
break;
@ -428,7 +428,7 @@ static void sdp_manipulations_subst(struct sdp_chopper *chop,
ht = sdp_manipulations->subst_commands_glob;
}
str * cmd_subst_value = g_hash_table_lookup(ht, attr_name);
str * cmd_subst_value = ht ? g_hash_table_lookup(ht, attr_name) : NULL;
if (!cmd_subst_value)
return;


Loading…
Cancel
Save