Skip to content

Commit 1da361e

Browse files
committed
fix tests file and remove the string parsing
1 parent 79679f6 commit 1da361e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

rmutil/alloc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ char *rmalloc_strndup(const char *s, size_t n) {
1414
/*
1515
* Re-patching RedisModule_Alloc and friends to the original malloc functions
1616
*
17-
* This function shold be called if you are working with malloc-patched code
18-
* ouside of redis, usually for unit tests. Call it once when entering your unit
17+
* This function should be called if you are working with malloc-patched code
18+
* outside of redis, usually for unit tests. Call it once when entering your unit
1919
* tests' main().
2020
*
2121
* Since including "alloc.h" while defining REDIS_MODULE_TARGET

rmutil/alloc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ char *rmalloc_strndup(const char *s, size_t n);
4343
#else
4444

4545
#endif /* REDIS_MODULE_TARGET */
46-
/* This function shold be called if you are working with malloc-patched code
47-
* ouside of redis, usually for unit tests. Call it once when entering your unit
46+
/* This function should be called if you are working with malloc-patched code
47+
* outside of redis, usually for unit tests. Call it once when entering your unit
4848
* tests' main() */
4949
void RMUTil_InitAlloc();
5050

0 commit comments

Comments
 (0)