Skip to content

Commit 0ee696c

Browse files
committed
HevJNI: Fix the checking of pthread_create results.
1 parent c4d33fb commit 0ee696c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hev-jni.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ native_start_service (JNIEnv *env, jobject thiz, jstring config_path)
109109
(*env)->ReleaseStringUTFChars (env, config_path, (const char *)bytes);
110110

111111
res = pthread_create (&work_thread, NULL, thread_handler, argv);
112-
if (res < 0) {
112+
if (res != 0) {
113113
free (argv[1]);
114114
free (argv);
115115
goto exit;

0 commit comments

Comments
 (0)