Archived
1
0
This commit is contained in:
Marrub 2015-06-06 13:07:07 -04:00
parent 8ec9fc2abd
commit 1355b115ae

View File

@ -322,7 +322,15 @@ char *LT_ReadString(char term)
if(LT_Assert(c == EOF || c == '\n', "LT_ReadString: Unterminated string literal"))
{
return "";
char *emptyString = LT_Alloc(1);
emptyString[0] = '\0';
gbRover->next = LT_Alloc(sizeof(LT_GarbageList));
gbRover = gbRover->next;
gbRover->ptr = emptyString;
gbRover->next = NULL;
return emptyString;
}
if(c == '\\' && info.escapeChars)