summaryrefslogtreecommitdiffstats
path: root/minui/resources.c
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2011-03-01 23:04:34 +0100
committerDoug Zongker <dougz@android.com>2011-03-01 23:04:34 +0100
commit6809c51f8db86f1ab00a076cf570439d11920d3a (patch)
tree1c00a572803d0c73f7935855681f31969b527151 /minui/resources.c
parentam 8d43d940: am 2c273f00: store partition length in recovery.fstab (diff)
downloadandroid_bootable_recovery-6809c51f8db86f1ab00a076cf570439d11920d3a.tar
android_bootable_recovery-6809c51f8db86f1ab00a076cf570439d11920d3a.tar.gz
android_bootable_recovery-6809c51f8db86f1ab00a076cf570439d11920d3a.tar.bz2
android_bootable_recovery-6809c51f8db86f1ab00a076cf570439d11920d3a.tar.lz
android_bootable_recovery-6809c51f8db86f1ab00a076cf570439d11920d3a.tar.xz
android_bootable_recovery-6809c51f8db86f1ab00a076cf570439d11920d3a.tar.zst
android_bootable_recovery-6809c51f8db86f1ab00a076cf570439d11920d3a.zip
Diffstat (limited to 'minui/resources.c')
-rw-r--r--minui/resources.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/minui/resources.c b/minui/resources.c
index 3d2c727fb..2170dca6a 100644
--- a/minui/resources.c
+++ b/minui/resources.c
@@ -49,6 +49,8 @@ int res_create_surface(const char* name, gr_surface* pSurface) {
png_structp png_ptr = NULL;
png_infop info_ptr = NULL;
+ *pSurface = NULL;
+
snprintf(resPath, sizeof(resPath)-1, "/res/images/%s.png", name);
resPath[sizeof(resPath)-1] = '\0';
FILE* fp = fopen(resPath, "rb");