emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/lwlib/lwlib-Xm.c,v


From: Jim Meyering
Subject: [Emacs-diffs] Changes to emacs/lwlib/lwlib-Xm.c,v
Date: Mon, 02 Jun 2008 06:00:58 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Changes by:     Jim Meyering <meyering> 08/06/02 06:00:54

Index: lwlib/lwlib-Xm.c
===================================================================
RCS file: /cvsroot/emacs/emacs/lwlib/lwlib-Xm.c,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -b -r1.57 -r1.58
--- lwlib/lwlib-Xm.c    8 Jan 2008 20:46:10 -0000       1.57
+++ lwlib/lwlib-Xm.c    2 Jun 2008 06:00:51 -0000       1.58
@@ -956,14 +956,12 @@
     }
   else if (class == xmTextWidgetClass)
     {
-      if (val->value)
        free (val->value);
       val->value = XmTextGetString (widget);
       val->edited = True;
     }
   else if (class == xmTextFieldWidgetClass)
     {
-      if (val->value)
        free (val->value);
       val->value = XmTextFieldGetString (widget);
       val->edited = True;
@@ -989,7 +987,6 @@
              XtVaGetValues (toggle, XmNset, &set, NULL);
              if (set)
                {
-                 if (val->value)
                    free (val->value);
                  val->value = safe_strdup (XtName (toggle));
                }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]