]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/capture/ether_linux/ether_cap.cpp
Fixed invalid check of pthread_create return value.
[stg.git] / projects / stargazer / plugins / capture / ether_linux / ether_cap.cpp
index 69761722c3e1a0abadaf23f4fc7b5bd6220ac479..6ed2e0680627c18ef6e5e3a426b393832f2a648f 100644 (file)
@@ -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.");