Skip to content
Snippets Groups Projects
Commit a4b26187 authored by Simon McVittie's avatar Simon McVittie
Browse files

inspect-library: Don't produce malformed JSON if the ABI is not known


If we don't know what symbols we're looking for, we need to print a
comma to follow "path" and precede "dependencies".

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent be73649b
No related branches found
No related tags found
1 merge request!31Log an issue if we don't know which shared libraries to expect
...@@ -327,7 +327,7 @@ main (int argc, ...@@ -327,7 +327,7 @@ main (int argc,
print_json_string_content (entry); print_json_string_content (entry);
printf ("\""); printf ("\"");
} }
printf ("\n ],"); printf ("\n ]");
free (missing_symbols); free (missing_symbols);
free (misversioned_symbols); free (misversioned_symbols);
...@@ -339,7 +339,7 @@ main (int argc, ...@@ -339,7 +339,7 @@ main (int argc,
while (dep_map != NULL && dep_map->l_prev != NULL) while (dep_map != NULL && dep_map->l_prev != NULL)
dep_map = dep_map->l_prev; dep_map = dep_map->l_prev;
printf ("\n \"dependencies\": ["); printf (",\n \"dependencies\": [");
first = true; first = true;
for (; dep_map != NULL; dep_map = dep_map->l_next) for (; dep_map != NULL; dep_map = dep_map->l_next)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment