[geany/geany-plugins] c66dc4: Fix cppcheck false-positive warning

Enrico Tröger git-noreply at xxxxx
Sun Nov 5 22:33:13 UTC 2017


Branch:      refs/heads/master
Author:      Enrico Tröger <enrico.troeger at uvena.de>
Committer:   Enrico Tröger <enrico.troeger at uvena.de>
Date:        Sun, 05 Nov 2017 22:33:13 UTC
Commit:      c66dc44b65ba3319377a1fb032e9837eb36a3be7
             https://github.com/geany/geany-plugins/commit/c66dc44b65ba3319377a1fb032e9837eb36a3be7

Log Message:
-----------
Fix cppcheck false-positive warning

Cppcheck warns about:
prjorg-menu.c:142: error: Uninitialized variable: elem
which is more or less a false-positive but the explicit
initialization won't hurt.


Modified Paths:
--------------
    projectorganizer/src/prjorg-menu.c

Modified: projectorganizer/src/prjorg-menu.c
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -114,7 +114,7 @@ static void on_swap_header_source(G_GNUC_UNUSED GtkMenuItem * menuitem, G_GNUC_U
 	if (known_type)
 	{
 		gboolean swapped;
-		GSList *elem, *list = NULL;
+		GSList *elem = NULL, *list = NULL;
 		guint i = 0;
 
 		foreach_document(i)



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Plugins-Commits mailing list