[Xfce4-commits] [apps/ristretto] 01/01: Fix using uninitialized variable; found by Coverity

noreply at xfce.org noreply at xfce.org
Thu Oct 6 17:47:01 CEST 2016


This is an automated email from the git hooks/post-receive script.

f2404 pushed a commit to branch master
in repository apps/ristretto.

commit de0ccdc65ed3d6bdb46973d7eae31f682c100039
Author: Igor <f2404 at yandex.ru>
Date:   Thu Oct 6 18:45:55 2016 +0300

    Fix using uninitialized variable; found by Coverity
---
 src/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main.c b/src/main.c
index b01891f..c081add 100644
--- a/src/main.c
+++ b/src/main.c
@@ -256,7 +256,7 @@ cb_rstto_open_files (RsttoOpenFiles *rof)
          */
         iter = rstto_main_window_get_iter (RSTTO_MAIN_WINDOW (rof->window));
 
-        if (file_type != G_FILE_TYPE_DIRECTORY && r_file != NULL)
+        if (r_file != NULL && file_type != G_FILE_TYPE_DIRECTORY)
         {
             /* Get the file's parent directory */
             p_file = g_file_get_parent (file);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list