Fix sparse warnings: "Using plain integer as NULL pointer"
commitee1765e529ab6b44adbcc6a0ff6e9ac1359c6cd6
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>
Tue, 1 Jun 2010 18:32:41 +0000 (1 19:32 +0100)
committerAndreas Ericsson <ae@op5.se>
Wed, 2 Jun 2010 09:18:55 +0000 (2 11:18 +0200)
treebc7ab9aaf82cd5778fe998117b465b5feeb58c41
parent468b12adb15f5546e7c5536f72204605fbd83f6d
Fix sparse warnings: "Using plain integer as NULL pointer"

In order to suppress this warning, we could simply replace the
constant 0 with NULL. However, in this case, replacing the
comparison with 0 by !buffer is more idiomatic.

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Andreas Ericsson <ae@op5.se>
src/commit.c