chiark / gitweb /
core: check asprintf return value
[elogind.git] / src / shared / util.c
index 845c7ea91ad98c3818e9b2a626298fb5c6baa62d..1994c7e05d0923036bb51de3796986dd78597f79 100644 (file)
@@ -94,6 +94,9 @@
 #include "def.h"
 #include "sparse-endian.h"
 
+/* Put this test here for a lack of better place */
+assert_cc(EAGAIN == EWOULDBLOCK);
+
 int saved_argc = 0;
 char **saved_argv = NULL;