[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: pcb.git: branch: master updated (bb35265834d1938f43ddeced41ab3ad0e8274e67)



The branch, master has been updated
       via  bb35265834d1938f43ddeced41ab3ad0e8274e67 (commit)
      from  1e0554fa83b7d769b6ba2d3475a0f2efbf47762b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


=========
 Summary
=========

 src/action.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


=================
 Commit Messages
=================

commit bb35265834d1938f43ddeced41ab3ad0e8274e67
Author: DJ Delorie <dj@xxxxxxxxxxx>
Commit: DJ Delorie <dj@xxxxxxxxxxx>

    Handle NULL strings when replacing elements.
    
    Sometimes, when you're building a board from the library,
    elements won't have values for their strings.  When replacing those
    elements, replicate the NULL pointer rather than trying to strup it.

:100644 100644 6b979d3... 9cf163b... M	src/action.c

=========
 Changes
=========

commit bb35265834d1938f43ddeced41ab3ad0e8274e67
Author: DJ Delorie <dj@xxxxxxxxxxx>
Commit: DJ Delorie <dj@xxxxxxxxxxx>

    Handle NULL strings when replacing elements.
    
    Sometimes, when you're building a board from the library,
    elements won't have values for their strings.  When replacing those
    elements, replicate the NULL pointer rather than trying to strup it.

diff --git a/src/action.c b/src/action.c
index 6b979d3..9cf163b 100644
--- a/src/action.c
+++ b/src/action.c
@@ -1456,7 +1456,7 @@ NotifyMode (void)
 		    memcpy (estr, e->Name,
 			    MAX_ELEMENTNAMES * sizeof (TextType));
 		    for (i = 0; i < MAX_ELEMENTNAMES; ++i)
-		      estr[i].TextString = strdup(estr[i].TextString);
+		      estr[i].TextString = estr[i].TextString ? strdup(estr[i].TextString) : NULL;
 		    RemoveElement (e);
 		  }
 	      }




_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs