bl0ckeduser/snes9x — comment on commit 2a939e6d9ba3145d5a43b23d2ae8fd4f5aa6593d
File:  line 0
By OV2:

I don't really see the problem: if val.size() is 0 then val[0] is '\0' and the rest will be skipped.