Description:
 Any pointer other than NULL is valid. The hack to reject pointers
 less than 0x8000 in an attempt to catch coding errors (an enum
 instead of a pointer to an enum) results in runtime errors. This
 leads to test suite failures and package FTBFS bugs. Use normal NULL
 test for pointer validity check.
Author: Mattias Ellert <mattias.ellert@physics.uu.se>

--- procps-4.0.6.orig/library/pids.c	2026-01-29 10:48:26.000000000 +0100
+++ procps-4.0.6/library/pids.c	2026-05-30 11:14:52.000000000 +0200
@@ -1039,8 +1042,7 @@
      * if (procps_pids_new(&info, PIDS_noop, 3) < 0)
      *                            ^~~~~~~~~~~~~~~~
      */
-    if (numitems < 1
-    || (void *)items < (void *)0x8000)      // twice as big as our largest enum
+    if (numitems < 1 || items == NULL)
         return 1;
 
     for (i = 0; i < numitems; i++) {
