From c44e0869b775a28aa4d43cf71cbb27c40e0c8264 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrico=20Tr=C3=B6ger?= Date: Tue, 22 Apr 2008 13:05:31 +0000 Subject: [PATCH] Fix GLib warning when starting with a new config. git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2512 ea778897-0a13-0410-b9d1-a72fbfd435f5 --- ChangeLog | 6 ++++++ src/plugins.c | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index be7bb471..00ddec12 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-04-22 Enrico Tröger + + * src/plugins.c: + Fix GLib warning when starting with a new config. + + 2008-04-20 Enrico Tröger * src/build.c: diff --git a/src/plugins.c b/src/plugins.c index d86d4571..4350f8ec 100644 --- a/src/plugins.c +++ b/src/plugins.c @@ -605,8 +605,7 @@ load_active_plugins() { guint i, len; - len = g_strv_length(active_plugins_pref); - if (active_plugins_pref == NULL || len == 0) + if (active_plugins_pref == NULL || (len = g_strv_length(active_plugins_pref)) == 0) return; for (i = 0; i < len; i++)