Messages in this thread | | | Subject | Re: [PATCH] btrfs: fix a NULL pointer dereference | From | Nikolay Borisov <> | Date | Thu, 14 Mar 2019 11:18:44 +0200 |
| |
On 14.03.19 г. 11:15 ч., Qu Wenruo wrote: > Isn't assert() a bad idea for production build without assert() support?
As already discussed this is invariant of the code, if this invariant is broken then in production builds we'd likely crash (which is good since we want to understand why and not silently handle it). In debug builds the assert will be triggered.
| |