mirror of
https://github.com/redis/redis.git
synced 2026-04-21 03:01:35 -04:00
Previously, passing 0 for newlen would not truncate the string at all. This adds handling of this case, freeing the old string and creating a new empty string. Other changes: - Move `src/modules/testmodule.c` to `tests/modules/basics.c` - Introduce that basic test into the test suite - Add tests to cover StringTruncate - Add `test-modules` build target for the main makefile - Extend `distclean` build target to clean modules too
1.1 KiB
Executable File
1.1 KiB
Executable File