Changeset: b62e981b2ac9 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/b62e981b2ac9
Modified Files:
        sql/backends/monet5/vaults/json/json.c
Branch: nested
Log Message:

small fix


diffs (12 lines):

diff --git a/sql/backends/monet5/vaults/json/json.c 
b/sql/backends/monet5/vaults/json/json.c
--- a/sql/backends/monet5/vaults/json/json.c
+++ b/sql/backends/monet5/vaults/json/json.c
@@ -310,7 +310,7 @@ JSONread_ndjson(Client cntxt, MalBlkPtr 
                        char *head = content;
                        char *tail = content;
                        while (cnt < (jfh->size + 1)) {
-                               if (head[0] == '\n' || (head[0] == '\r' && 
head[1] == '\n')) {
+                               if (head[0] == '\n' || ((strlen(head) > 2) && 
(head[0] == '\r' && head[1] == '\n'))) {
                                        int skip = 1;
                                        if (head[0] == '\r' && head[1] == '\n')
                                                skip = 2;
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to