|
|
@ -63,18 +63,18 @@ parse_gids (const char *name G_GNUC_UNUSED, |
|
|
|
hb_codepoint_t end_code = strtoul (s, &p, 10); |
|
|
|
hb_codepoint_t end_code = strtoul (s, &p, 10); |
|
|
|
if (s[0] == '-' || errno || s == p) |
|
|
|
if (s[0] == '-' || errno || s == p) |
|
|
|
{ |
|
|
|
{ |
|
|
|
hb_set_destroy (gids); |
|
|
|
hb_set_destroy (gids); |
|
|
|
g_set_error (error, G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, |
|
|
|
g_set_error (error, G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, |
|
|
|
"Failed parsing gids values at: '%s'", s); |
|
|
|
"Failed parsing gids values at: '%s'", s); |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (end_code < start_code) |
|
|
|
if (end_code < start_code) |
|
|
|
{ |
|
|
|
{ |
|
|
|
hb_set_destroy (gids); |
|
|
|
hb_set_destroy (gids); |
|
|
|
g_set_error (error, G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, |
|
|
|
g_set_error (error, G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, |
|
|
|
"Invalid gids range value %u-%u", start_code, end_code); |
|
|
|
"Invalid gids range value %u-%u", start_code, end_code); |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
hb_set_add_range (gids, start_code, end_code); |
|
|
|
hb_set_add_range (gids, start_code, end_code); |
|
|
|
} |
|
|
|
} |
|
|
|