Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F170994897
D59274.id185445.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
439 B
Referenced Files
None
Subscribers
None
D59274.id185445.diff
View Options
diff --git a/lib/libc/tests/stdlib/qsort_bench.c b/lib/libc/tests/stdlib/qsort_bench.c
--- a/lib/libc/tests/stdlib/qsort_bench.c
+++ b/lib/libc/tests/stdlib/qsort_bench.c
@@ -53,7 +53,7 @@
int *buf;
/* fill an array with a pathological pattern */
- ATF_REQUIRE(buf = malloc(n * sizeof(*buf)));
+ ATF_REQUIRE((buf = malloc(n * sizeof(*buf))) != NULL);
buf[0] = 0;
buf[n / 2] = n / 2;
for (unsigned int i = 1; i < n / 2; i++) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Sep 9, 2:03 AM (12 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37711755
Default Alt Text
D59274.id185445.diff (439 B)
Attached To
Mode
D59274: Assign and test `malloc` result separately
Attached
Detach File
Event Timeline
Log In to Comment