From 563dbfc3cae4a711fb3676a9c8005aeeef8c6e31 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 24 Jun 2023 21:16:13 +0200 Subject: return explicit NULL rather than 0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memory.c b/memory.c index b6abe3e..d5b50b7 100644 --- a/memory.c +++ b/memory.c @@ -26,7 +26,7 @@ get_string(pid_t pid, unsigned long int addr, size_t *lenp, const char **errorp) *errorp = errno == EFAULT ? "" : ""; *lenp = 0; free(out); - return 0; + return NULL; } p = memchr(&out[off], 0, read_size); if (p) { -- cgit v1.2.3-70-g09d2