summaryrefslogtreecommitdiffstats
path: root/minui/resources.cpp
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2017-01-09 20:18:29 +0100
committerTianjie Xu <xunchang@google.com>2017-01-19 04:37:06 +0100
commitd17a6885253da909e376ba5ca5084f5281f3557c (patch)
tree8603c5d1df466bcec6dda5c88ad8cd3bc66cad6d /minui/resources.cpp
parentMerge "minui: Export minui/minui.h." (diff)
downloadandroid_bootable_recovery-d17a6885253da909e376ba5ca5084f5281f3557c.tar
android_bootable_recovery-d17a6885253da909e376ba5ca5084f5281f3557c.tar.gz
android_bootable_recovery-d17a6885253da909e376ba5ca5084f5281f3557c.tar.bz2
android_bootable_recovery-d17a6885253da909e376ba5ca5084f5281f3557c.tar.lz
android_bootable_recovery-d17a6885253da909e376ba5ca5084f5281f3557c.tar.xz
android_bootable_recovery-d17a6885253da909e376ba5ca5084f5281f3557c.tar.zst
android_bootable_recovery-d17a6885253da909e376ba5ca5084f5281f3557c.zip
Diffstat (limited to '')
-rw-r--r--minui/resources.cpp4
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";