[dovecot-cvs] dovecot/src/lib env-util.c,1.3,1.4

cras at procontrol.fi cras at procontrol.fi
Wed Dec 18 06:05:13 EET 2002


Update of /home/cvs/dovecot/src/lib
In directory danu:/tmp/cvs-serv20411/lib

Modified Files:
	env-util.c 
Log Message:
unix98 says putenv() returns non-zero for errors - check for that rather
than just negative values.



Index: env-util.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib/env-util.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- env-util.c	18 Dec 2002 04:00:01 -0000	1.3
+++ env-util.c	18 Dec 2002 04:05:11 -0000	1.4
@@ -35,7 +35,7 @@
 	if (pool == NULL)
 		pool = pool_create("Environment", 1024, FALSE);
 
-	if (putenv(p_strdup(pool, env)) < 0)
+	if (putenv(p_strdup(pool, env)) != 0)
 		i_fatal("Environment full, can't add: %s", env);
 }
 




More information about the dovecot-cvs mailing list