[geany/geany] 681c13: Work around potentially uninitialized variable warning

Matthew Brush git-noreply at xxxxx
Fri Jan 12 22:09:38 UTC 2018


Branch:      refs/heads/master
Author:      Matthew Brush <matt at geany.org>
Committer:   Matthew Brush <matt at geany.org>
Date:        Thu, 21 Dec 2017 02:59:16 UTC
Commit:      681c13841a7d6a3a91b60645d86012b10b820c59
             https://github.com/geany/geany/commit/681c13841a7d6a3a91b60645d86012b10b820c59

Log Message:
-----------
Work around potentially uninitialized variable warning

Simply zero-initializes the variable.

Requires -O3 optimization level to trigger.


Modified Paths:
--------------
    src/document.c

Modified: src/document.c
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -3701,7 +3701,7 @@ gboolean document_check_disk_status(GeanyDocument *doc, gboolean force)
 {
 	gboolean ret = FALSE;
 	gboolean use_gio_filemon;
-	time_t mtime;
+	time_t mtime = 0;
 	gchar *locale_filename;
 	FileDiskStatus old_status;
 



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


More information about the Commits mailing list