From: Maxim Mamontov Date: Sun, 11 Nov 2012 17:05:11 +0000 (+0200) Subject: Fixed invalid check of pthread_create return value. X-Git-Tag: 2.409~404 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/1a73e47fb21475ad48496e5eeedcd36a61344450 Fixed invalid check of pthread_create return value. --- diff --git a/projects/stargazer/plugins/capture/ether_linux/ether_cap.cpp b/projects/stargazer/plugins/capture/ether_linux/ether_cap.cpp index 69761722..6ed2e068 100644 --- a/projects/stargazer/plugins/capture/ether_linux/ether_cap.cpp +++ b/projects/stargazer/plugins/capture/ether_linux/ether_cap.cpp @@ -97,7 +97,7 @@ if (EthCapOpen() < 0) nonstop = true; -if (pthread_create(&thread, NULL, Run, this) == 0) +if (pthread_create(&thread, NULL, Run, this)) { errorStr = "Cannot create thread."; logger("Cannot create thread.");