diff options
author | Tianjie Xu <xunchang@google.com> | 2017-01-19 20:20:36 +0100 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-01-19 20:20:36 +0100 |
commit | a38224eadb00ecb32fac0454b78f5a805259ebbf (patch) | |
tree | 8603c5d1df466bcec6dda5c88ad8cd3bc66cad6d /minui | |
parent | Merge "minui: Export minui/minui.h." (diff) | |
parent | Merge "Add checkers and tests for empty locale in PNG file" (diff) | |
download | android_bootable_recovery-a38224eadb00ecb32fac0454b78f5a805259ebbf.tar android_bootable_recovery-a38224eadb00ecb32fac0454b78f5a805259ebbf.tar.gz android_bootable_recovery-a38224eadb00ecb32fac0454b78f5a805259ebbf.tar.bz2 android_bootable_recovery-a38224eadb00ecb32fac0454b78f5a805259ebbf.tar.lz android_bootable_recovery-a38224eadb00ecb32fac0454b78f5a805259ebbf.tar.xz android_bootable_recovery-a38224eadb00ecb32fac0454b78f5a805259ebbf.tar.zst android_bootable_recovery-a38224eadb00ecb32fac0454b78f5a805259ebbf.zip |
Diffstat (limited to '')
-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"; |