src/SDL_compat.c
changeset 3592 25dc4a86132c
parent 3585 f8816ffa210b
child 3685 64ce267332c6
equal deleted inserted replaced
3591:db4af3cb938e 3592:25dc4a86132c
  1762     char *var = SDL_strdup(_var);
  1762     char *var = SDL_strdup(_var);
  1763     if (var == NULL) {
  1763     if (var == NULL) {
  1764         return -1;  /* we don't set errno. */
  1764         return -1;  /* we don't set errno. */
  1765     }
  1765     }
  1766 
  1766 
  1767     ptr = strchr(var, '=');
  1767     ptr = SDL_strchr(var, '=');
  1768     if (ptr == NULL) {
  1768     if (ptr == NULL) {
  1769         SDL_free(var);
  1769         SDL_free(var);
  1770         return -1;
  1770         return -1;
  1771     }
  1771     }
  1772 
  1772