| Revision: 2768
          http://selinux.svn.sourceforge.net/selinux/?rev=2768&view=rev
Author:   ssmalley
Date:     2008-01-28 05:45:06 -0800 (Mon, 28 Jan 2008)
Log Message:
-----------
Silence spurious out of memory errors.
Modified Paths:
--------------
    branches/stable/1_0/libsemanage/src/debug.c
Modified: branches/stable/1_0/libsemanage/src/debug.c
===================================================================
--- branches/stable/1_0/libsemanage/src/debug.c	2008-01-28 13:44:02 UTC (rev 2767)
+++ branches/stable/1_0/libsemanage/src/debug.c	2008-01-28 13:45:06 UTC (rev 2768)
@@ -81,8 +81,8 @@
 	vfprintf(stream, fmt, ap);
 	va_end(ap);
 
-	if (errsv)
-		fprintf(stream, " %s.", strerror(errsv));
+	if (errsv && errsv != ENOMEM)
+		fprintf(stream, " (%s).", strerror(errsv));
 
 	fprintf(stream, "\n");
 
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 |