mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
feature #2465: Fix parsing of empty strings.
This commit is contained in:
parent
a759d95c59
commit
2dc79fdfe9
@ -75,7 +75,7 @@ STRING [^=#[:blank:]\n,\[\]]+
|
||||
/* - String in double quoted form */
|
||||
/* - Anything but =,][# and blanks */
|
||||
/* ------------------------------------------------------------------------ */
|
||||
<VALUE>\"([^\"]|"\\\"")+\" { lvalp->val_str = mem_collector_strdup(mc,yytext+1);
|
||||
<VALUE>\"([^\"]|"\\\"")*\" { lvalp->val_str = mem_collector_strdup(mc,yytext+1);
|
||||
lvalp->val_str[yyleng-2] = '\0';
|
||||
BEGIN(INITIAL); return STRING; }
|
||||
|
||||
|
@ -126,7 +126,7 @@ attribute: VARIABLE EQUAL STRING
|
||||
{
|
||||
Attribute * pattr;
|
||||
string name($1);
|
||||
string value("");
|
||||
string value;
|
||||
|
||||
pattr = new SingleAttribute(name,value);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user