Commit 1eb1142a authored by Nils Goroll's avatar Nils Goroll

argument to dcs_match must not be a null pointer

parent 8205ab3c
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#include <string.h> #include <string.h>
#include <assert.h>
#include "dcs_classifier.h" #include "dcs_classifier.h"
#include "dcs_match.h" #include "dcs_match.h"
...@@ -87,6 +88,8 @@ dcs_match(const char *p) { ...@@ -87,6 +88,8 @@ dcs_match(const char *p) {
printf("\n--\n%s",p); printf("\n--\n%s",p);
#endif #endif
assert(p);
dcs_init_matchstate(&state); dcs_init_matchstate(&state);
while (*p) { while (*p) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment