Nicolas Cannasse hace 6 años
padre
commit
bcbaaddc74
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/code.c

+ 1 - 1
src/code.c

@@ -125,7 +125,7 @@ static const char *hl_read_string( hl_reader *r ) {
 	int i = INDEX();
 	if( i < 0 || i >= r->code->nstrings ) {
 		ERROR("Invalid string index");
-		i = 0;
+		return "";
 	}
 	return r->code->strings[i];
 }