SDL_InvalidateMap crash

Hello,
the function SDL_InvalidateMap crash if map is NULL

the first test:

void
SDL_InvalidateMap(SDL_BlitMap * map)
{
    if (!map) {
        return;
    }

should be:

void
SDL_InvalidateMap(SDL_BlitMap * map)
{
    if (map == NULL) {
        return;
    }

Both functions mean the same thing.

maybe gcc is working different on AmigaOS4? Because i get a DSI there