From 5a9727b5580138822acf446d322b809d45f0d755 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Thu, 21 Nov 2013 14:28:08 +0100 Subject: [PATCH] disable bogus warning for data files without style markers --- src/read_data.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/read_data.cpp b/src/read_data.cpp index a942427623..78ed984692 100644 --- a/src/read_data.cpp +++ b/src/read_data.cpp @@ -61,6 +61,10 @@ static int style_match(const char *one, const char *two) { int i, delta, len, len1, len2; + // cannot compare empty styles + + if ((len1 == NULL) || (len2 == NULL)) return 1; + len1 = strlen(one); len2 = strlen(two);