[Fedora-directory-commits] dsgw error.c,1.2,1.3

Richard Allen Megginson (rmeggins) fedora-directory-commits at redhat.com
Sat Feb 9 18:23:40 UTC 2008


Author: rmeggins

Update of /cvs/dirsec/dsgw
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv18819

Modified Files:
	error.c 
Log Message:
do not print empty message


Index: error.c
===================================================================
RCS file: /cvs/dirsec/dsgw/error.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- error.c	14 Jan 2008 22:58:30 -0000	1.2
+++ error.c	9 Feb 2008 18:23:38 -0000	1.3
@@ -191,12 +191,12 @@
 
     dsgw_emitf( "<FONT SIZE=\"+1\">\n%s\n</FONT>\n", msg );
     if ( extra != NULL ) {
-	if ( lderrtxt == NULL ) {
+	if ( lderrtxt == NULL || !*lderrtxt ) {
 	    dsgw_emitf( "<BR>(%s)", extra );
 	} else {
 	    dsgw_emitf( "<BR>(%s - %s)", extra, lderrtxt );
 	}
-    } else if ( lderrtxt != NULL ) {
+    } else if ( lderrtxt != NULL && *lderrtxt ) {
 	dsgw_emitf( "<BR>(%s)", lderrtxt );
     }
 




More information about the Fedora-directory-commits mailing list