From a6d3d8691b2fedaf79e719469f0654047cd1548d Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Mon, 6 Jan 2014 17:47:54 -0500 Subject: [PATCH] fix pointer arithmetic bug in read_data --- src/read_data.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/read_data.cpp b/src/read_data.cpp index 2db5fa8af7..3ce6eab345 100644 --- a/src/read_data.cpp +++ b/src/read_data.cpp @@ -63,7 +63,7 @@ static int style_match(const char *one, const char *two) // cannot compare empty styles - if ((len1 == NULL) || (len2 == NULL)) return 1; + if ((one == NULL) || (two == NULL)) return 1; len1 = strlen(one); len2 = strlen(two);