src/SDL_hints.c
changeset 7716 be4cda94bce2
parent 7432 58908b180ebd
child 7719 31b5f9ff36ca
equal deleted inserted replaced
7715:24f652e130fa 7716:be4cda94bce2
    73                     entry = next;
    73                     entry = next;
    74                 }
    74                 }
    75                 if (hint->value) {
    75                 if (hint->value) {
    76                     SDL_free(hint->value);
    76                     SDL_free(hint->value);
    77                 }
    77                 }
    78                 if (value) {
    78                 hint->value = value ? SDL_strdup(value) : NULL;
    79                     hint->value = SDL_strdup(value);
       
    80                 } else {
       
    81                     hint->value = NULL;
       
    82                 }
       
    83             }
    79             }
    84             hint->priority = priority;
    80             hint->priority = priority;
    85             return SDL_TRUE;
    81             return SDL_TRUE;
    86         }
    82         }
    87     }
    83     }