]> git.stg.codes - stg.git/commitdiff
Fixed invalid check of pthread_create return value.
authorMaxim Mamontov <faust.madf@gmail.com>
Sun, 11 Nov 2012 17:05:11 +0000 (19:05 +0200)
committerMaxim Mamontov <faust.madf@gmail.com>
Sun, 11 Nov 2012 17:05:11 +0000 (19:05 +0200)
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.");