diff options
-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; |