Skip to content

Commit

Permalink
close #105
Browse files Browse the repository at this point in the history
  • Loading branch information
ncannasse committed Jul 7, 2019
1 parent 898d72c commit bcbaadd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/code.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down

0 comments on commit bcbaadd

Please sign in to comment.