qulogic/gplugin

Merging
develop
2019-01-26, Gary Kramlich
f1511cc83ae5
Merging
--- a/ChangeLog Sat Jan 26 11:16:24 2019 -0600
+++ b/ChangeLog Sat Jan 26 11:20:48 2019 -0600
@@ -1,5 +1,6 @@
0.28.1:
General
+ * Fix a bug that scanbuild found in test-plugin-info.
* Use g_set_error (PR #6) (Elliott Sales de Andrade)
* Use g_clear_pointer (PR #6) (Elliott Sales de Andrade)
* Use g_clear_object (PR #6) (Elliott Sales de Andrade)
--- a/gplugin/tests/test-plugin-info.c Sat Jan 26 11:16:24 2019 -0600
+++ b/gplugin/tests/test-plugin-info.c Sat Jan 26 11:20:48 2019 -0600
@@ -50,13 +50,13 @@
gint i = 0;
gchar **tmp = NULL;
- for(i = 0; got[i]; i++)
- g_assert_cmpstr(got[i], ==, expected[i]);
+ for(i = 0; expected[i]; i++)
+ g_assert_cmpstr(got[i], ==, expected[i]);
tmp = func(info);
for(i = 0; got[i]; i++)
- g_assert_cmpstr(got[i], ==, tmp[i]);
+ g_assert_cmpstr(got[i], ==, tmp[i]);
g_strfreev(tmp);
}