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: r1178930 - /incubator/lucy/branches/clownfish_lemon/clownfish/src/CFCParser.c
Date Tue, 04 Oct 2011 19:51:13 GMT
Author: marvin
Date: Tue Oct  4 19:51:13 2011
New Revision: 1178930

URL: http://svn.apache.org/viewvc?rev=1178930&view=rev
Log:
Return NULL instead of throwing an exception when parsing fails.

Modified:
    incubator/lucy/branches/clownfish_lemon/clownfish/src/CFCParser.c

Modified: incubator/lucy/branches/clownfish_lemon/clownfish/src/CFCParser.c
URL: http://svn.apache.org/viewvc/incubator/lucy/branches/clownfish_lemon/clownfish/src/CFCParser.c?rev=1178930&r1=1178929&r2=1178930&view=diff
==============================================================================
--- incubator/lucy/branches/clownfish_lemon/clownfish/src/CFCParser.c (original)
+++ incubator/lucy/branches/clownfish_lemon/clownfish/src/CFCParser.c Tue Oct  4 19:51:13
2011
@@ -84,7 +84,8 @@ CFCParser_parse(CFCParser *self, const c
     // Finish up.
     CFCParseHeader(CFCParser_current_parser, 0, NULL, &state);
     if (state.errors) {
-        CFCUtil_die("Clownfish header syntax error");
+        CFCBase_decref((CFCBase*)state.result);
+        return NULL;
     }
     return state.result;
 }



Mime
View raw message