diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-07-10 13:54:50 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-07-10 14:43:44 +0200 |
commit | 309c6b19a784c225b17effa8e7ee583fa1d9001d (patch) | |
tree | 153360bd2b3925b8fe846b0c5cbd08cb0610f3d4 /src/basic/string-util.c | |
parent | 9ae4ef49cd2a44032c6c385151f35fc62a97e81d (diff) | |
download | systemd-309c6b19a784c225b17effa8e7ee583fa1d9001d.tar.gz |
Remove string_erase
Diffstat (limited to 'src/basic/string-util.c')
-rw-r--r-- | src/basic/string-util.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/basic/string-util.c b/src/basic/string-util.c index 08a10e8787..474903b2a8 100644 --- a/src/basic/string-util.c +++ b/src/basic/string-util.c @@ -1032,16 +1032,6 @@ int free_and_strndup(char **p, const char *s, size_t l) { return 1; } -char* string_erase(char *x) { - if (!x) - return NULL; - - /* A delicious drop of snake-oil! To be called on memory where - * we stored passphrases or so, after we used them. */ - explicit_bzero_safe(x, strlen(x)); - return x; -} - bool string_is_safe(const char *p) { const char *t; |