Skip to content

Commit

Permalink
Whoops[exec_hooks]: do not null program unconditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
artdeell committed Jan 5, 2025
1 parent cd751fa commit 43e7620
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion app_pojavlauncher/src/main/jni/java_exec_hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ static jint hooked_ProcessImpl_forkAndExec(JNIEnv *env, jobject process, jint mo
// Also add LD_LIBRARY_PATH and PATH for the lib in order to override the ones from the launcher, since
// they may interfere with ffmpeg dependencies.
const char* ffmpeg_path = getenv("POJAV_FFMPEG_PATH");
prog = NULL;
if(ffmpeg_path != NULL) {
replaceLibPathInEnvBlock(env, &envBlock, &envc, dirname(ffmpeg_path));
prog = stringToBytes(env, ffmpeg_path);
Expand Down

0 comments on commit 43e7620

Please sign in to comment.