| # | Line 100 | Line 100 | xstrndup(const char *s, size_t len) | |
|---|---|---|
| 100 | void | |
| 101 | outofmemory(void) | |
| 102 | { | |
| 103 | < | static int was_here = 0; |
| 103 | > | static bool was_here = false; |
| 104 | ||
| 105 | < | if (was_here++) |
| 105 | > | if (was_here == false) |
| 106 | > | { |
| 107 | > | was_here = true; |
| 108 | abort(); | |
| 109 | + | } |
| 110 | ||
| 111 | server_die("out of memory", SERVER_RESTART); | |
| 112 | } | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |