process-util: add missing NULL initialization for _cleanup_ variable

This is will otherwise trigger a bad memory access in the error path
This commit is contained in:
Lennart Poettering
2021-11-23 18:42:22 +01:00
parent 5c682b7881
commit ed90de9fbc
+1 -1
View File
@@ -1491,7 +1491,7 @@ int set_oom_score_adjust(int value) {
}
int get_oom_score_adjust(int *ret) {
_cleanup_free_ char *t;
_cleanup_free_ char *t = NULL;
int r, a;
r = read_virtual_file("/proc/self/oom_score_adj", SIZE_MAX, &t, NULL);