[PATCH] Trivial warning fix for imap-send.c
- From
- Art Haas <ahaas@airmail.net>
- Date
- Mar 11, 2006, 19:29 UTC
- Message-ID
- <20060311192954.GQ16135@artsapartment.org>
Hi.
After my 'git' repo this morning and building I noticed a GCC warning about a missing sentinel in this file. A scan of the libc docs says that execl() needs to end with a terminating NULL, as the miniscule change below does, and recompliation with GCC removed the warning.
Art Haas
Signed-off-by: Art Haas <ahaas@airmail.net>
diff --git a/imap-send.c b/imap-send.c index fddaac0..203284d 100644 --- a/imap-send.c +++ b/imap-send.c @@ -945,7 +945,7 @@ imap_open_store( imap_server_conf_t *srv _exit( 127 ); close( a[0] ); close( a[1] ); - execl( "/bin/sh", "sh", "-c", srvc->tunnel, 0 ); + execl( "/bin/sh", "sh", "-c", srvc->tunnel, NULL ); _exit( 127 ); }
-- Man once surrendering his reason, has no remaining guard against absurdities the most monstrous, and like a ship without rudder, is the sport of every wind. -Thomas Jefferson to James Smith, 1822