[geany/geany-plugins] 544e9f: Initialize variable "closing_comment"

Enrico Tröger git-noreply at xxxxx
Sun Aug 13 13:21:23 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, 13 Aug 2017 13:21:23 UTC
Commit:      544e9f6b57927eb98bd8daadb1b7bd2b9a3b2c89
             https://github.com/geany/geany-plugins/commit/544e9f6b57927eb98bd8daadb1b7bd2b9a3b2c89

Log Message:
-----------
Initialize variable "closing_comment"

Older cppcheck versions (e.g. 1.61 on Ubuntu 14.04) seem to detect
this as an error which is not. Yet, the initialization won't hurt.


Modified Paths:
--------------
    addons/src/ao_tasks.c

Modified: addons/src/ao_tasks.c
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -559,7 +559,7 @@ static void create_task(AoTasks *t, GeanyDocument *doc, gint line, const gchar *
 static void update_tasks_for_doc(AoTasks *t, GeanyDocument *doc)
 {
 	gint lexer, lines, line, last_pos = 0, style;
-	gchar *line_buf, *display_name, *task_start, *closing_comment;
+	gchar *line_buf, *display_name, *task_start, *closing_comment = NULL;
 	gchar **token;
 	AoTasksPrivate *priv = AO_TASKS_GET_PRIVATE(t);
 



--------------
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