Browse code

core: safer propagation of parameter address

Daniel-Constantin Mierla authored on 20/03/2012 13:32:28
Showing 1 changed files
... ...
@@ -197,7 +197,7 @@ static sr_xavp_t *xavp_get_internal(str *name, sr_xavp_t **list, int idx, sr_xav
197 197
 
198 198
 sr_xavp_t *xavp_get(str *name, sr_xavp_t *start)
199 199
 {
200
-	return xavp_get_internal(name, &start, 0, NULL);
200
+	return xavp_get_internal(name, (start)?&start:NULL, 0, NULL);
201 201
 }
202 202
 
203 203
 sr_xavp_t *xavp_get_by_index(str *name, int idx, sr_xavp_t **start)