[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: pcb.git: branch: master updated (d2a7382d1fcecd85a1feee399543a3e89fe1ef6b)
The branch, master has been updated
via d2a7382d1fcecd85a1feee399543a3e89fe1ef6b (commit)
from 99b23b942f4733a6e3c5333b13c90d6343f340dd (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/parse_y.y | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
=================
Commit Messages
=================
commit d2a7382d1fcecd85a1feee399543a3e89fe1ef6b
Author: DJ Delorie <dj@xxxxxxxxxxx>
Commit: DJ Delorie <dj@xxxxxxxxxxx>
Allow empty attribute values.
The STRING token is NULL when an empty string is indicated, but
empty attributes are different than missing attributes, so if a STRING
is NULL, store an empty string instead.
:100644 100644 646ef77... bbb7255... M src/parse_y.y
=========
Changes
=========
commit d2a7382d1fcecd85a1feee399543a3e89fe1ef6b
Author: DJ Delorie <dj@xxxxxxxxxxx>
Commit: DJ Delorie <dj@xxxxxxxxxxx>
Allow empty attribute values.
The STRING token is NULL when an empty string is indicated, but
empty attributes are different than missing attributes, so if a STRING
is NULL, store an empty string instead.
diff --git a/src/parse_y.y b/src/parse_y.y
index 646ef77..bbb7255 100644
--- a/src/parse_y.y
+++ b/src/parse_y.y
@@ -1878,7 +1878,7 @@ attributes : attribute
attribute
: T_ATTRIBUTE '(' STRING STRING ')'
{
- CreateNewAttribute (attr_list, $3, $4);
+ CreateNewAttribute (attr_list, $3, $4 ? $4 : "");
SaveFree ($3);
SaveFree ($4);
}
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs