From 76fd90ffd79f73f4d8cd9acc009696a12db77e1e Mon Sep 17 00:00:00 2001 From: Jim Evins Date: Fri, 28 Oct 2005 22:58:41 +0000 Subject: [PATCH] 2005-10-28 Jim Evins * src/canvas-hacktext.c: (gl_canvas_hacktext_set_arg): Fixed use of uninitialized variable. Caught by d binderman . git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@559 f5e0f49d-192f-0410-a22d-a8d8700d0965 --- glabels2/ChangeLog | 6 ++++++ glabels2/src/canvas-hacktext.c | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/glabels2/ChangeLog b/glabels2/ChangeLog index 9965d0ec..60750ccd 100644 --- a/glabels2/ChangeLog +++ b/glabels2/ChangeLog @@ -1,3 +1,9 @@ +2005-10-28 Jim Evins + + * src/canvas-hacktext.c: (gl_canvas_hacktext_set_arg): + Fixed use of uninitialized variable. Caught by + d binderman . + 2005-10-27 Jim Evins * src/merge-evolution.c: (gl_merge_evolution_get_record): diff --git a/glabels2/src/canvas-hacktext.c b/glabels2/src/canvas-hacktext.c index 4c5d21c2..2e5ec01b 100644 --- a/glabels2/src/canvas-hacktext.c +++ b/glabels2/src/canvas-hacktext.c @@ -281,7 +281,6 @@ gl_canvas_hacktext_set_arg (GObject *object, { GnomeCanvasItem *item; glCanvasHacktext *bp; - char *text; GnomeGlyphList * gl; GdkColor color; GnomeFont * font; @@ -301,7 +300,7 @@ gl_canvas_hacktext_set_arg (GObject *object, bp->priv->glyphlist = NULL; } - if (text) bp->text = g_value_dup_string (value); + bp->text = g_value_dup_string (value); gnome_canvas_item_request_update (item); break; -- 2.39.5