diff options
Diffstat (limited to 'doc/developer.texi')
-rw-r--r-- | doc/developer.texi | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/developer.texi b/doc/developer.texi index de642396dc..fed28cdbcd 100644 --- a/doc/developer.texi +++ b/doc/developer.texi @@ -73,6 +73,10 @@ const char *avfilter_configuration(void) @} @end example @item +Do not check for NULL values by comparison, @samp{if (p)} and +@samp{if (!p)} are correct; @samp{if (p == NULL)} and @samp{if (p != NULL)} +are not. +@item In case of a single-statement if, no curly braces are required: @example if (!pic || !picref) |