libixp

git clone git://oldgit.suckless.org/libixp/
Log | Files | Refs | LICENSE

commit 9363933314d6131cb69c9e9985b8f698f30ea2fe
parent 93edbb7a427a768d4fa5aca87346ee85a5417237
Author: sqweek <sqweek@gmail.com>
Date:   Sat, 20 Sep 2008 11:04:28 +0800

Fix use of uninitialised global variable user.

Diffstat:
examples/ixpsrv.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/examples/ixpsrv.c b/examples/ixpsrv.c @@ -502,6 +502,9 @@ main(int argc, char *argv[]) { if(!address) fatal("$IXP_ADDRESS not set\n"); + if(!(user = getenv("USER"))) + fatal("$USER not set\n"); + fd = ixp_announce(address); if(fd < 0) fatal("%s\n", errstr);