diff options
author | Tianjie Xu <xunchang@google.com> | 2017-01-19 20:17:17 +0100 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-01-19 20:17:18 +0100 |
commit | 69e73ab7a9b1832d162034cdf36a8669e4e2a985 (patch) | |
tree | 8603c5d1df466bcec6dda5c88ad8cd3bc66cad6d /minui/resources.cpp | |
parent | Merge "minui: Export minui/minui.h." (diff) | |
parent | Add checkers and tests for empty locale in PNG file (diff) | |
download | android_bootable_recovery-69e73ab7a9b1832d162034cdf36a8669e4e2a985.tar android_bootable_recovery-69e73ab7a9b1832d162034cdf36a8669e4e2a985.tar.gz android_bootable_recovery-69e73ab7a9b1832d162034cdf36a8669e4e2a985.tar.bz2 android_bootable_recovery-69e73ab7a9b1832d162034cdf36a8669e4e2a985.tar.lz android_bootable_recovery-69e73ab7a9b1832d162034cdf36a8669e4e2a985.tar.xz android_bootable_recovery-69e73ab7a9b1832d162034cdf36a8669e4e2a985.tar.zst android_bootable_recovery-69e73ab7a9b1832d162034cdf36a8669e4e2a985.zip |
Diffstat (limited to 'minui/resources.cpp')
-rw-r--r-- | minui/resources.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/minui/resources.cpp b/minui/resources.cpp index e6909f269..726c627ed 100644 --- a/minui/resources.cpp +++ b/minui/resources.cpp @@ -374,7 +374,9 @@ int res_create_alpha_surface(const char* name, GRSurface** pSurface) { // This function tests if a locale string stored in PNG (prefix) matches // the locale string provided by the system (locale). bool matches_locale(const char* prefix, const char* locale) { - if (locale == NULL) return false; + if (locale == nullptr) { + return false; + } // Return true if the whole string of prefix matches the top part of // locale. For instance, prefix == "en" matches locale == "en_US"; |