* src/SDCCval.c: fixed bug introduced by me in rev. #4577
[fw/sdcc] / src / SDCCval.c
index 69f1532758ac88d8b92d35249dcaf5d3fdbac367..575d0e927edbd4b329272eae81d9c8f2554e6033 100644 (file)
@@ -57,8 +57,8 @@ newiList (int type, void *ilist)
   nilist = Safe_alloc (sizeof (initList));
 
   nilist->type = type;
-  nilist->lineno = mylineno;
-  nilist->filename = currFname;
+  nilist->lineno = lineno;
+  nilist->filename = filename;
 
   switch (type)
     {
@@ -827,6 +827,8 @@ unsigned char hexEscape(const char **src)
       werror(W_ESC_SEQ_OOR_FOR_CHAR);
     }
   }
+  *src = s;
+
   return (char) value;
 }