[nautilus-python] Fix bug #792427, Prevent duplicate extensions from being loaded



commit 38810c58b0809bbde61af63136c69aeb7b8ec780
Author: Balló György <ballogyor gmail com>
Date:   Thu Jan 11 15:53:06 2018 -0500

    Fix bug #792427, Prevent duplicate extensions from being loaded

 src/nautilus-python.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-python.c b/src/nautilus-python.c
index 694d555..b1fa4f2 100644
--- a/src/nautilus-python.c
+++ b/src/nautilus-python.c
@@ -248,7 +248,7 @@ nautilus_python_check_all_directories(GTypeModule *module) {
     while (*temp != NULL) {
         gchar *dir = g_build_filename(*temp,
             "nautilus-python", "extensions", NULL);
-        if (dir != prefix_extension_dir) {
+        if (g_strcmp0(dir, prefix_extension_dir) != 0) {
             dirs = g_list_append(dirs, dir);
         }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]