]> git.sur5r.net Git - glabels/commitdiff
2005-10-28 Jim Evins <evins@snaught.com>
authorJim Evins <evins@snaught.com>
Fri, 28 Oct 2005 22:58:41 +0000 (22:58 +0000)
committerJim Evins <evins@snaught.com>
Fri, 28 Oct 2005 22:58:41 +0000 (22:58 +0000)
* src/canvas-hacktext.c: (gl_canvas_hacktext_set_arg):
Fixed use of uninitialized variable.  Caught by
d binderman <dcb314@hotmail.com>.

git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@559 f5e0f49d-192f-0410-a22d-a8d8700d0965

glabels2/ChangeLog
glabels2/src/canvas-hacktext.c

index 9965d0ec46929ca5c3c9503b30e63675757373c7..60750ccdf387d7fb68deed8b49d17af659802894 100644 (file)
@@ -1,3 +1,9 @@
+2005-10-28  Jim Evins  <evins@snaught.com>
+
+       * src/canvas-hacktext.c: (gl_canvas_hacktext_set_arg):
+               Fixed use of uninitialized variable.  Caught by
+               d binderman <dcb314@hotmail.com>.
+
 2005-10-27  Jim Evins  <evins@snaught.com>
 
        * src/merge-evolution.c: (gl_merge_evolution_get_record):
index 4c5d21c24e58776cdaaab30a27520dcaf7b5133f..2e5ec01b495e268041920f047e4e80162067f6f2 100644 (file)
@@ -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;