now allow S and E in class hints :)
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 4 Aug 2005 18:26:45 +0000 (18:26 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 4 Aug 2005 18:26:45 +0000 (18:26 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@1608 dcc99617-32d9-48b4-a31d-7c20da2025e4

OpenSRF/src/objson/json_parser.c

index db47fb5..ac0de5f 100644 (file)
@@ -633,6 +633,11 @@ int json_eat_comment(char* string, unsigned long* index, char** buffer, int pars
                                        (*index)--; /* this will get incremented at the bottom of the loop */
                                        in_hint = 1;
                                        break;
+                               } 
+
+                               if(second_dash && in_hint) {
+                                       buffer_add_char(buf, c);
+                                       break;
                                }
 
                        case 'E':
@@ -645,6 +650,11 @@ int json_eat_comment(char* string, unsigned long* index, char** buffer, int pars
                                        break;
                                }
 
+                               if(second_dash && in_hint) {
+                                       buffer_add_char(buf, c);
+                                       break;
+                               }
+
                        case '*':
                                on_star = 1;
                                break;