mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 800329 - Check for value before checking its contents. r=ted
This commit is contained in:
parent
497f74eabb
commit
9750858277
@ -45,7 +45,7 @@ def get_locale_strings(path, prefix, middle, add_cr):
|
||||
|
||||
name, value = line.split("=", 1)
|
||||
value = value.strip() # trim whitespace from the start and end
|
||||
if value[-1] == "\"" and value[0] == "\"":
|
||||
if value and value[-1] == "\"" and value[0] == "\"":
|
||||
value = value[1:-1] # remove " from the start and end
|
||||
|
||||
if add_cr:
|
||||
|
Loading…
Reference in New Issue
Block a user