Skip to content

Commit 11074ab

Browse files
committed
Update uthash.h
1 parent 87b0cee commit 11074ab

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/libltfs/uthash.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ do {
100100
#endif
101101

102102
#ifndef HASH_NONFATAL_OOM
103-
#define HASH_NONFATAL_OOM 0
103+
#define HASH_NONFATAL_OOM 1
104104
#endif
105105

106106
#if HASH_NONFATAL_OOM
@@ -110,7 +110,7 @@ do {
110110
#define uthash_nonfatal_oom(obj) do {} while (0) /* non-fatal OOM error */
111111
#endif
112112

113-
#define HASH_RECORD_OOM(oomed) do { (oomed) = 1; } while (0)
113+
#define HASH_RECORD_OOM(oomed) do { (oomed) = 1; errno=ENOMEM; } while (0)
114114
#define IF_HASH_NONFATAL_OOM(x) x
115115

116116
#else

0 commit comments

Comments
 (0)