Skip to content
  • Khalid Abu Shawarib's avatar
    common-languages: Avoid uninitialized variable usage · bafd606f
    Khalid Abu Shawarib authored and Marge Bot's avatar Marge Bot committed
    The function `gnome_parse_locale()` doesn't nullify the
    variables passed to it if it can't parse correctly. This causes a
    crash when passing some locales like "en".
    
    Initialize the variables to NULL and early return with a false when
    parsing fails to avoid this.
    
    Part-of: <!240>
    bafd606f