]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix unlikely
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 6 Sep 2021 20:55:58 +0000 (15:55 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 6 Sep 2021 20:55:58 +0000 (15:55 -0500)
src/lib/util/event.c

index 53776efb4466aa9583a36e1fbab6153397e86a28..c74cafe8a28b195776fb23a58f1d52c5245899d4 100644 (file)
@@ -1625,7 +1625,7 @@ int _fr_event_pid_wait(NDEBUG_LOCATION_ARGS
        struct kevent evset;
 
        ev = talloc(ctx, fr_event_pid_t);
-       if (!unlikely(ev)) {
+       if (unlikely(ev == NULL)) {
                fr_strerror_const("Out of memory");
                return -1;
        }