From 1a73e47fb21475ad48496e5eeedcd36a61344450 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Sun, 11 Nov 2012 19:05:11 +0200 Subject: [PATCH] Fixed invalid check of pthread_create return value. --- projects/stargazer/plugins/capture/ether_linux/ether_cap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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."); -- 2.44.2