user_nodefs.h
1.54 KB
-
common: introduce GITERR_CHECK_ALLOC_BUF · 859ed5dd
We commonly have to check if a git_buf has been allocated correctly or if we ran out of memory. Introduce a new macro similar to `GITERR_CHECK_ALLOC` which checks if we ran OOM and if so returns an error. Provide a `#nodef` for Coverity to mark the error case as an abort path.
Patrick Steinhardt committed