From 663ad8e9d0c1497081343a91af66f9e41649b5dd Mon Sep 17 00:00:00 2001 From: MinSeong Kim Date: Fri, 11 Nov 2016 05:26:06 +0000 Subject: Fix "ordered comparison between pointer and zero". From Clang 4.x releases, DR583 and DR1512 will be addressed. This patch, in advance, fixes the error(s). Test: `mmma bootable/recovery` Change-Id: I29dc85ae681307c322ab3a698c3f3bbad1c784ee Signed-off-by: MinSeong Kim --- minui/resources.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minui/resources.cpp b/minui/resources.cpp index 34c9c82ba..e25512f51 100644 --- a/minui/resources.cpp +++ b/minui/resources.cpp @@ -268,7 +268,7 @@ int res_create_multi_display_surface(const char* name, int* frames, int* fps, printf(" found fps = %d\n", *fps); } - if (frames <= 0 || fps <= 0) { + if (*frames <= 0 || *fps <= 0) { printf("bad number of frames (%d) and/or FPS (%d)\n", *frames, *fps); result = -10; goto exit; -- cgit v1.2.3