Skip to content
Snippets Groups Projects
Commit c97fec37 authored by Ludovico de Nittis's avatar Ludovico de Nittis :palm_tree:
Browse files

system-info: Return the correct value if the assertion fails

parent e624f9da
No related branches found
No related tags found
No related merge requests found
...@@ -581,7 +581,7 @@ srt_system_info_new_from_json (const char *path, ...@@ -581,7 +581,7 @@ srt_system_info_new_from_json (const char *path,
g_return_val_if_fail (_srt_check_not_setuid (), NULL); g_return_val_if_fail (_srt_check_not_setuid (), NULL);
g_return_val_if_fail (path != NULL, NULL); g_return_val_if_fail (path != NULL, NULL);
g_return_val_if_fail (error == NULL || *error == NULL, FALSE); g_return_val_if_fail (error == NULL || *error == NULL, NULL);
info = srt_system_info_new (NULL); info = srt_system_info_new (NULL);
srt_system_info_set_environ (info, (gchar * const *) no_strings); srt_system_info_set_environ (info, (gchar * const *) no_strings);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment