Skip to content

Commit

Permalink
lsns: check for OOM
Browse files Browse the repository at this point in the history
Signed-off-by: Karel Zak <kzak@redhat.com>
  • Loading branch information
karelzak committed Jul 1, 2016
1 parent f29bc6e commit 99ae5a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sys-utils/lsns.c
Original file line number Diff line number Diff line change
Expand Up @@ -470,8 +470,8 @@ static void add_scols_line(struct lsns *ls, struct libscols_table *table,
break;
}

if (str)
scols_line_set_data(line, i, str);
if (str && scols_line_set_data(line, i, str) != 0)
err_oom();
}

proc->outline = line;
Expand Down

0 comments on commit 99ae5a4

Please sign in to comment.