json_object_object_add (json_i, "title", json_title);
json_object_array_add (json_a, json_i);
- free (id); free (title);
+ free (id); free (title);
i++;
}
return;
if (number_returned == 1) {
- found = strstr (result, "id=\"");
+ found = strstr (result, "id=\"");
found += 4;
strncpy (subid, found, 32); subid[32] = '\0';