Page MenuHomeFreeBSD

D48200.1786739015.diff
No OneTemporary

Size
592 B
Referenced Files
None
Subscribers
None

D48200.1786739015.diff

diff --git a/lib/libthr/thread/thr_cancel.c b/lib/libthr/thread/thr_cancel.c
--- a/lib/libthr/thread/thr_cancel.c
+++ b/lib/libthr/thread/thr_cancel.c
@@ -99,9 +99,9 @@
return (EINVAL);
}
- if (oldstate) {
+ if (oldstate != NULL) {
*oldstate = oldval ? PTHREAD_CANCEL_ENABLE :
- PTHREAD_CANCEL_DISABLE;
+ PTHREAD_CANCEL_DISABLE;
}
return (0);
}
@@ -125,9 +125,9 @@
return (EINVAL);
}
- if (oldtype) {
+ if (oldtype != NULL) {
*oldtype = oldval ? PTHREAD_CANCEL_ASYNCHRONOUS :
- PTHREAD_CANCEL_DEFERRED;
+ PTHREAD_CANCEL_DEFERRED;
}
return (0);
}

File Metadata

Mime Type
text/plain
Expires
Fri, Aug 14, 8:23 PM (20 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29408289
Default Alt Text
D48200.1786739015.diff (592 B)

Event Timeline