qulogic/gplugin

Fix a bug in test-plugin-info that scanbuild found
develop
2019-01-22, Gary Kramlich
67f2e5aa5b99
Fix a bug in test-plugin-info that scanbuild found
--- a/ChangeLog Tue Jan 22 23:02:56 2019 -0600
+++ b/ChangeLog Tue Jan 22 23:18:33 2019 -0600
@@ -1,5 +1,5 @@
0.28.1:
- * Nothing yet, be the first!
+ * Fix a bug that scanbuild found in test-plugin-info.
0.28.0: 2019/01/22
* Fixed building on OSX with homebrew
--- a/gplugin/tests/test-plugin-info.c Tue Jan 22 23:02:56 2019 -0600
+++ b/gplugin/tests/test-plugin-info.c Tue Jan 22 23:18:33 2019 -0600
@@ -45,13 +45,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);
}