Initialize VP to NULL.
[freeradius.git] / src / modules / rlm_rest / rest.c
index 5a7d3d4..22ad177 100644 (file)
@@ -1056,7 +1056,7 @@ static int rest_decode_post(rlm_rest_t *instance,
                        goto skip;
                }
 
-               vp = pairalloc(da);
+               vp = pairalloc(NULL, da);
                if (!vp) {
                        radlog(L_ERR, "rlm_rest (%s): Failed creating"
                               " valuepair", instance->xlat_name);
@@ -1251,7 +1251,7 @@ static VALUE_PAIR *json_pairmake(rlm_rest_t *instance,
        json_flags_t flags;
 
        const DICT_ATTR *da;
-       VALUE_PAIR *vp;
+       VALUE_PAIR *vp = NULL;
        
        request_refs_t request_name;
        pair_lists_t list_name;