afb-api-v3: Fix a bug introduced by 8ca7b69
[src/app-framework-binder.git] / src / afb-api-v3.c
index 5134c96..11bc35f 100644 (file)
@@ -135,9 +135,9 @@ static struct json_object *describe_verb_v3(const struct afb_verb_v3 *verb)
 
        a = json_object_new_object();
        json_object_object_add(g, "responses", a);
-       f = json_object_new_object();
-       json_object_object_add(a, "200", f);
-       json_object_object_add(f, "description", json_object_new_string(verb->info?:verb->verb));
+       g = json_object_new_object();
+       json_object_object_add(a, "200", g);
+       json_object_object_add(g, "description", json_object_new_string(verb->info?:verb->verb));
 
        return f;
 }