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);