Re: [PATCH] btrfs: fix a NULL pointer dereference
From: Nikolay Borisov
Date: Thu Mar 14 2019 - 05:18:50 EST
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.