diff options
Diffstat (limited to 'libglusterfs/src/graph.y')
| -rw-r--r-- | libglusterfs/src/graph.y | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/libglusterfs/src/graph.y b/libglusterfs/src/graph.y index 4ac07660f95..14afaae6475 100644 --- a/libglusterfs/src/graph.y +++ b/libglusterfs/src/graph.y @@ -382,7 +382,7 @@ yyerror (const char *str)          extern char  *yytext;          extern int    yylineno; -        if (curr && curr->name) { +        if (curr && curr->name && yytext) {                  if (!strcmp (yytext, "volume")) {                          gf_log ("parser", GF_LOG_ERROR,                                  "'end-volume' not defined for volume '%s'",  | 
