[Xfce4-commits] <libxfce4util:master> Fixed incorrect assertion in xfce_strjoin (bug #7122).

Nick Schermer noreply at xfce.org
Tue Jan 18 13:24:01 CET 2011


Updating branch refs/heads/master
         to 57c306e902068cb0fe2ecc8271e36718dd8c058b (commit)
       from 78b702cd4ad7f212b2c43f11830b1797682090b5 (commit)

commit 57c306e902068cb0fe2ecc8271e36718dd8c058b
Author: Jens Luedicke <jens at linux-vq8x.site>
Date:   Tue Jan 18 13:22:25 2011 +0100

    Fixed incorrect assertion in xfce_strjoin (bug #7122).

 libxfce4util/xfce-miscutils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libxfce4util/xfce-miscutils.c b/libxfce4util/xfce-miscutils.c
index 2a25275..1b464aa 100644
--- a/libxfce4util/xfce-miscutils.c
+++ b/libxfce4util/xfce-miscutils.c
@@ -295,7 +295,7 @@ xfce_strjoin (const gchar *separator,
   gint   length;
   gint   n;
 
-  g_return_val_if_fail (count < 1, NULL);
+  g_return_val_if_fail (count > 0, NULL);
   g_return_val_if_fail (strings != NULL, NULL);
 
   for (length = 1, n = 0; n < count; n++)



More information about the Xfce4-commits mailing list