Skip to content

Commit accf149

Browse files
committed
Updated str match function
1 parent 7dd9ca1 commit accf149

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/data/str.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ xbool_t xstrcmp(const char *pStr, const char *pCmp)
185185

186186
xbool_t xstrmatch(const char *pStr, size_t nLength, const char *pPattern, size_t nPatternLength)
187187
{
188-
XASSERT_RET((xstrused(pStr) && xstrused(pPattern)), XFALSE);
188+
XASSERT_RET(((pStr != NULL) && (pPattern != NULL)), XFALSE);
189189
if (!nPatternLength) return !nLength ? XTRUE : XFALSE;
190190

191191
if (pPattern[0] == '*')

0 commit comments

Comments
 (0)