lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject [lucy-commits] svn commit: r1327727 - /lucy/trunk/clownfish/src/CFCSymbol.c
Date Wed, 18 Apr 2012 23:45:54 GMT
Author: marvin
Date: Wed Apr 18 23:45:54 2012
New Revision: 1327727

URL: http://svn.apache.org/viewvc?rev=1327727&view=rev
Log:
Don't validate empty strings as class names.

Modified:
    lucy/trunk/clownfish/src/CFCSymbol.c

Modified: lucy/trunk/clownfish/src/CFCSymbol.c
URL: http://svn.apache.org/viewvc/lucy/trunk/clownfish/src/CFCSymbol.c?rev=1327727&r1=1327726&r2=1327727&view=diff
==============================================================================
--- lucy/trunk/clownfish/src/CFCSymbol.c (original)
+++ lucy/trunk/clownfish/src/CFCSymbol.c Wed Apr 18 23:45:54 2012
@@ -90,6 +90,7 @@ S_validate_class_name(const char *class_
 
 int
 CFCSymbol_validate_class_name_component(const char *name) {
+    if (!name || !strlen(name)) { return false; }
     if (!S_validate_class_name(name)) { return false; }
     if (strchr(name, ':') != NULL) { return false; }
     return true;



Mime
View raw message