1
0
Fork 0

Fix logging NULL string (‘%s’ directive argument is null)

This commit is contained in:
hpi1 2020-02-16 16:50:35 +02:00
parent bc2d0d8c41
commit d73f0332b2
2 changed files with 2 additions and 2 deletions

View File

@ -278,7 +278,7 @@ JNIEXPORT jint JNICALL Java_org_videolan_Libbluray_setVirtualPackageN(JNIEnv * e
path = (*env)->GetStringUTFChars(env, vpPath, NULL);
}
BD_DEBUG(DBG_JNI|DBG_CRIT, "setVirtualPackageN(%s,%d)\n", path, (int)psr_init_backup);
BD_DEBUG(DBG_JNI|DBG_CRIT, "setVirtualPackageN(%s,%d)\n", path ? path : "<null>", (int)psr_init_backup);
result = bd_set_virtual_package(bd, path, (int)psr_init_backup);

View File

@ -3774,7 +3774,7 @@ static int _bd_read_file(BLURAY *bd, const char *dir, const char *file, void **d
}
BD_DEBUG(DBG_BLURAY, "bd_read_file(): read %"PRId64" bytes from %s"DIR_SEP"%s\n",
*size, dir, file);
*size, dir ? dir : "", file);
return 1;
}