Skip to content
  • LRN's avatar
    W32: check filename for being NULL in g_stat() · 52c45a10
    LRN authored
    Previous version of this function started with a call to g_utf8_to_utf16(),
    which also served as a NULL check, since g_utf8_to_utf16() just returns NULL
    on NULL strings. Current version of this function does some filename string
    checks first and converts it to utf16 only after these checks are done, and
    these checks do not take into account the possibility of filename being NULL.
    
    Fix this by explicitly checking for NULL.
    52c45a10