Skip to content

Commit a9830d4

Browse files
gkastenAndroid (Google) Code Review
authored andcommitted
Merge "Fix build warnings"
2 parents 80f3fc2 + 129e19c commit a9830d4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

core/jni/android_util_AssetManager.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,12 +434,12 @@ static jint android_content_AssetManager_addAssetPath(JNIEnv* env, jobject clazz
434434
{
435435
ScopedUtfChars path8(env, path);
436436
if (path8.c_str() == NULL) {
437-
return NULL;
437+
return 0;
438438
}
439439

440440
AssetManager* am = assetManagerForJavaObject(env, clazz);
441441
if (am == NULL) {
442-
return JNI_FALSE;
442+
return 0;
443443
}
444444

445445
void* cookie;

core/jni/android_util_Process.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ static jlong android_os_Process_getFreeMemory(JNIEnv* env, jobject clazz)
389389
jlong mem = 0;
390390

391391
static const char* const sums[] = { "MemFree:", "Cached:", NULL };
392-
static const int sumsLen[] = { strlen("MemFree:"), strlen("Cached:"), NULL };
392+
static const int sumsLen[] = { strlen("MemFree:"), strlen("Cached:"), 0 };
393393

394394
char* p = buffer;
395395
while (*p && numFound < 2) {

0 commit comments

Comments
 (0)