Skip to content

Commit 8c6bc42

Browse files
committed
Fixes xsrc valgrind errors after implementing the automated tests
1 parent 815e55b commit 8c6bc42

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,6 @@ Mkfile.old
5252
dkms.conf
5353

5454
# Local files
55-
.vscode/
55+
examples/files.copy
56+
.vscode/
57+
*.log

src/sys/xfs.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1393,10 +1393,12 @@ void XFile_SearchInit(xfile_search_t *pSrcCtx, const char *pFileName)
13931393
pSrcCtx->fileArray.clearCb = XFile_ArrayClearCb;
13941394
pSrcCtx->nameTokens.clearCb = XFile_SearchClearCb;
13951395

1396+
pSrcCtx->sName[0] = XSTR_NUL;
1397+
pSrcCtx->sText[0] = XSTR_NUL;
1398+
13961399
XFile_TokenizeName(pSrcCtx, pFileName);
13971400
xstrncpy(pSrcCtx->sName, sizeof(pSrcCtx->sName), pFileName);
13981401

1399-
pSrcCtx->sText[0] = XSTR_NUL;
14001402
pSrcCtx->nBufferSize = 0;
14011403
pSrcCtx->nPermissions = 0;
14021404
pSrcCtx->nFileTypes = 0;

src/xver.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
#define XUTILS_VERSION_MAX 2
1414
#define XUTILS_VERSION_MIN 6
15-
#define XUTILS_BUILD_NUMBER 32
15+
#define XUTILS_BUILD_NUMBER 33
1616

1717
#ifdef __cplusplus
1818
extern "C" {

0 commit comments

Comments
 (0)