commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r807659 - /commons/sandbox/runtime/trunk/src/main/native/port/fnmatch.c
Date Tue, 25 Aug 2009 14:53:25 GMT
Author: mturk
Date: Tue Aug 25 14:53:24 2009
New Revision: 807659

URL: http://svn.apache.org/viewvc?rev=807659&view=rev
Log:
Although not reached some compilers issue a warning

Modified:
    commons/sandbox/runtime/trunk/src/main/native/port/fnmatch.c

Modified: commons/sandbox/runtime/trunk/src/main/native/port/fnmatch.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/port/fnmatch.c?rev=807659&r1=807658&r2=807659&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/port/fnmatch.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/port/fnmatch.c Tue Aug 25 14:53:24 2009
@@ -93,7 +93,7 @@
     char *newp;
     char c, test;
 
-    for (stringstart = string;;)
+    for (stringstart = string;;) {
         switch (c = *pattern++) {
         case EOS:
             if ((flags & FNM_LEADING_DIR) && *string == '/')
@@ -183,7 +183,9 @@
             ++string;
             break;
         }
+    }
     /* NOTREACHED */
+    return (FNM_NOMATCH);
 }
 
 static int



Mime
View raw message