Imported Upstream version 16.07-rc4
[deb_dpdk.git] / examples / performance-thread / pthread_shim / pthread_shim.c
index 93c3216..0d6100c 100644 (file)
@@ -417,9 +417,10 @@ int pthread_detach(pthread_t tid)
        if (override) {
                struct lthread *lt = (struct lthread *)tid;
 
-               if (lt == lthread_current())
+               if (lt == lthread_current()) {
                        lthread_detach();
                        return 0;
+               }
                NOT_IMPLEMENTED;
        }
        return _sys_pthread_funcs.f_pthread_detach(tid);