sparse: Fix an "Using plain integer as NULL pointer" warning
PATCH 1/2 sparse: Fix an "Using plain integer as NULL pointer" warning
Signed-off-by Ramsay Jones <[email protected]>
--- kwset.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
kwset.c +1 -1
@@ -674,7 +674,7 @@ cwexec (kwset_t kws, char const *text, size_t len, struct kwsmatch *kwsmatch)copy of the preceding main search loops. */ if (lim - mch > kwset->maxd) lim = mch + kwset->maxd; - lmch =0 ; + lmch =NULL ; d =1 ;while (lim - end >= d) {
Signature · 1 line
1.7.6