| 28 | } |
| 29 | |
| 30 | static struct strbuf *get_pathname(void) |
| 31 | { |
| 32 | static struct strbuf pathname_array[4] = { |
| 33 | STRBUF_INIT, STRBUF_INIT, STRBUF_INIT, STRBUF_INIT |
| 34 | }; |
| 35 | static int index; |
| 36 | struct strbuf *sb = &pathname_array[index]; |
| 37 | index = (index + 1) % ARRAY_SIZE(pathname_array); |
| 38 | strbuf_reset(sb); |
| 39 | return sb; |
| 40 | } |
| 41 | |
| 42 | static const char *cleanup_path(const char *path) |
| 43 | { |
no outgoing calls
no test coverage detected