[Initng-svn] r3830 - initng/trunk/plugins/iparser

svn at initng.thinktux.net svn at initng.thinktux.net
Tue Apr 18 13:30:29 CEST 2006


Author: jimmy
Date: Tue Apr 18 13:30:27 2006
New Revision: 3830

Modified:
   initng/trunk/plugins/iparser/initng_i_parser.c

Log:
Cleanup.


Modified: initng/trunk/plugins/iparser/initng_i_parser.c
==============================================================================
--- initng/trunk/plugins/iparser/initng_i_parser.c	(original)
+++ initng/trunk/plugins/iparser/initng_i_parser.c	Tue Apr 18 13:30:27 2006
@@ -350,12 +350,6 @@
 							   filename, &match, &exact_match) == TRUE)
 		{
 			D_("parse_service_line(%s, %s)\n", match ? match->name : NULL, exact_match ? exact_match->name : NULL);
-			/* if we found RIGHT what we wanted */
-			if (exact_match)
-			{
-				match = exact_match;
-				break;
-			}
 
 			/* ok, jump the ending '}' stack */
 			if (file[0] == '}')
@@ -371,6 +365,8 @@
 	}
 
 	/* Return what we got, and hope for the best */
+	if(exact_match)
+		return(exact_match);
 	return (match);
 }
 


More information about the Initng-svn mailing list