1
0
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:
Carlos Martín 2014-03-05 15:40:45 +01:00
parent a759d95c59
commit 2dc79fdfe9
2 changed files with 2 additions and 2 deletions

View File

@ -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; }

View File

@ -126,7 +126,7 @@ attribute: VARIABLE EQUAL STRING
{
Attribute * pattr;
string name($1);
string value("");
string value;
pattr = new SingleAttribute(name,value);