diff options
author | Mattias Andrée <maandree@kth.se> | 2023-06-24 21:16:13 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2023-06-24 21:16:13 +0200 |
commit | 563dbfc3cae4a711fb3676a9c8005aeeef8c6e31 (patch) | |
tree | a638920f1e0ca1bbdd0a300f5ad6a443867cfdef | |
parent | Argument 3 and 4 are swapped on SPARC for PTRACE_GETREGS and PTRACE_SETREGS (diff) | |
download | sctrace-563dbfc3cae4a711fb3676a9c8005aeeef8c6e31.tar.gz sctrace-563dbfc3cae4a711fb3676a9c8005aeeef8c6e31.tar.bz2 sctrace-563dbfc3cae4a711fb3676a9c8005aeeef8c6e31.tar.xz |
return explicit NULL rather than 0
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r-- | memory.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -26,7 +26,7 @@ get_string(pid_t pid, unsigned long int addr, size_t *lenp, const char **errorp) *errorp = errno == EFAULT ? "<invalid address>" : "<an error occured during reading of string>"; *lenp = 0; free(out); - return 0; + return NULL; } p = memchr(&out[off], 0, read_size); if (p) { |