From: Mathieu Desnoyers Date: Tue, 3 Dec 2013 16:31:16 +0000 (+0100) Subject: Fix undefined NULL pointer arithmetic in hlist X-Git-Tag: v0.9.0~119 X-Git-Url: https://git.lttng.org/?a=commitdiff_plain;ds=sidebyside;h=db903109f0031c831e8fdc95cb7197996e53f46d;hp=db903109f0031c831e8fdc95cb7197996e53f46d;p=urcu.git Fix undefined NULL pointer arithmetic in hlist Clang 3.3 with -O2 optimisations is especially picky about arithmetic on NULL pointers. This undefined behavior is turned into optimized out NULL checks by clang 3.3. Fix the undefined behavior by checking against the pointer directly, without going back and forth around NULL with pointer arithmetic. Signed-off-by: Mathieu Desnoyers ---