From f9cab33741abf753963ed51607f9cbf553a74631 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Wed, 7 Sep 2016 20:30:30 +0200 Subject: C-STYLE: redundancy --- C-STYLE.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/C-STYLE.md b/C-STYLE.md index b60fdd9..9a5f298 100644 --- a/C-STYLE.md +++ b/C-STYLE.md @@ -122,8 +122,6 @@ but merely how to format it. * Do not use `NULL`. Use `0` for null pointers. Remember to use `(char *)0` as a sentinel for execl(3). -* Check null pointers by truth: `if (foo) ...` - * Avoid superfluous comparison to 0. * Exception: Use `== 0` when 0 is the successful result, e.g. `strcmp(a, b) == 0`, `access(file, F_OK) == 0`, `regexec(...) == 0`. -- cgit 1.4.1