No RETURN_GOOD with uninited rr in create_opt_rr

rr-dict.c: In function 'priv_getdns_append_opt_rr':
rr-dict.c:1353:28: warning: 'opt_rr' may be used uninitialized in this function [-Wuninitialized]
This commit is contained in:
Willem Toorop 2014-02-13 10:23:06 +01:00
parent 758b6279b2
commit 703ed14d28
1 changed files with 1 additions and 1 deletions

View File

@ -1295,7 +1295,7 @@ priv_getdns_create_opt_rr(
result = getdns_dict_create_with_context(context);
if (!result) {
getdns_list_destroy(records);
return r;
return GETDNS_RETURN_MEMORY_ERROR;
}
/* cheat */
r = 0;