rem: str1 = strchr (pages, ':'); if (str1 != NULL) *str1 = '\0';
add: if (*p) return false;
context: first_last_page (char *pages){  char *str1;  if (*pages == ':')    {      error (0, 0, _("`--pages' invalid range of page numbers: `%s'"), pages);      usage (2);    }  str1 = strchr (pages, ':');  if (str1 != NULL)    *str1 = '\0';  {    long int tmp_long;    if (xstrtol (pages, NULL, 10, &tmp_long, "") != LONGINT_OK	|| tmp_long < 1 || tmp_long > INT_MAX)      error (EXIT_FAILURE, 0, _("`--pages' invalid starting page number: `%s'"),	     pages);    first_page_number = (int) tmp_long;  }  if (str1 == NULL)    return;  {    long int tmp_long;    if (xstrtol (str1 + 1, NULL, 10, &tmp_long, "") != LONGINT_OK	|| tmp_long <= 0 || tmp_long > INT_MAX)      error (EXIT_FAILURE, 0, _("`--pages' invalid ending page number: `%s'"),	     str1 + 1);    last_page_number = (int) tmp_long;  }  if (first_page_number > last_page_number)    error (EXIT_FAILURE, 0,	_("`--pages' starting page number is larger than ending page number"));}