diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-01-01 12:07:28 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-01-01 12:22:02 +0100 |
commit | fbe990dfeffd9a9fb3753299b7f632acf6bad037 (patch) | |
tree | cb2be39f3da855c6ea9d966e2900eac97e77dd00 /libps | |
parent | 9c6a81e23285abc9e67f6766376618fa82c213db (diff) | |
download | hurd-fbe990dfeffd9a9fb3753299b7f632acf6bad037.tar.gz hurd-fbe990dfeffd9a9fb3753299b7f632acf6bad037.tar.bz2 hurd-fbe990dfeffd9a9fb3753299b7f632acf6bad037.zip |
libps: Fix erroneous allocation test
Diffstat (limited to 'libps')
-rw-r--r-- | libps/fmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libps/fmt.c b/libps/fmt.c index 46416632..853a610c 100644 --- a/libps/fmt.c +++ b/libps/fmt.c @@ -49,7 +49,7 @@ _fmt_create (char *src, int posix, struct ps_fmt_specs *fmt_specs, return ENOMEM; new_fmt = NEW (struct ps_fmt); - if (fmt == NULL) + if (new_fmt == NULL) { FREE (fields); return ENOMEM; |