Skip to content

Commit

Permalink
forgot a check
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentisambart committed Feb 15, 2010
1 parent 2598af6 commit b06d9a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions string.c
Original file line number Diff line number Diff line change
Expand Up @@ -905,6 +905,9 @@ str_offset_in_bytes_for_string(string_t *self, string_t *searched, long start_of
static long
str_index_for_string(string_t *self, string_t *searched, long start_index, bool ucs2_mode)
{
str_must_have_compatible_encoding(self, searched);
str_make_same_format(self, searched);

long start_offset_in_bytes;
if (start_index == 0) {
start_offset_in_bytes = 0;
Expand Down

0 comments on commit b06d9a3

Please sign in to comment.