Skip to content

Commit cac4490

Browse files
RobLoachicculus
authored andcommitted
libretro: Remove second conditional if statement
1 parent 9fdc380 commit cac4490

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/physfs_platform_libretro.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ int __PHYSFS_platformInit(const char *argv0)
3535
/* as a cheat, we expect argv0 to be a retro_environment_t callback. */
3636
retro_environment_t environ_cb = (retro_environment_t) argv0;
3737
struct retro_vfs_interface_info vfs_interface_info;
38-
BAIL_IF(environ_cb == NULL || argv0[0] == '\0', PHYSFS_ERR_INVALID_ARGUMENT, 0);
38+
BAIL_IF(environ_cb == NULL, PHYSFS_ERR_INVALID_ARGUMENT, 0);
3939

4040
/* get the virtual file system interface, at least version 3 */
4141
vfs_interface_info.required_interface_version = 3;
@@ -258,7 +258,7 @@ PHYSFS_EnumerateCallbackResult __PHYSFS_platformEnumerate(const char *dirname,
258258
continue;
259259
} /* if */
260260
} /* if */
261-
261+
262262
retval = callback(callbackdata, origdir, name);
263263
if (retval == PHYSFS_ENUM_ERROR) {
264264
PHYSFS_setErrorCode(PHYSFS_ERR_APP_CALLBACK);

0 commit comments

Comments
 (0)