We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87b0cee commit 11074abCopy full SHA for 11074ab
1 file changed
src/libltfs/uthash.h
@@ -100,7 +100,7 @@ do {
100
#endif
101
102
#ifndef HASH_NONFATAL_OOM
103
-#define HASH_NONFATAL_OOM 0
+#define HASH_NONFATAL_OOM 1
104
105
106
#if HASH_NONFATAL_OOM
@@ -110,7 +110,7 @@ do {
110
#define uthash_nonfatal_oom(obj) do {} while (0) /* non-fatal OOM error */
111
112
113
-#define HASH_RECORD_OOM(oomed) do { (oomed) = 1; } while (0)
+#define HASH_RECORD_OOM(oomed) do { (oomed) = 1; errno=ENOMEM; } while (0)
114
#define IF_HASH_NONFATAL_OOM(x) x
115
116
#else
0 commit comments