diff options
Diffstat (limited to 'src/util_rt.c')
-rw-r--r-- | src/util_rt.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util_rt.c b/src/util_rt.c index c03ee2e..b634786 100644 --- a/src/util_rt.c +++ b/src/util_rt.c @@ -380,6 +380,9 @@ char *prne_rebuild_str (void *prev, const char **const arr, const size_t cnt) { } void prne_strzero (char *str) { + if (str == NULL) { + return; + } for (; *str != 0; str += 1) { *str = 0; } |