lsns: check for OOM

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2016-07-01 15:42:50 +02:00
parent f29bc6e1cc
commit 99ae5a4956
1 changed files with 2 additions and 2 deletions

View File

@ -470,8 +470,8 @@ static void add_scols_line(struct lsns *ls, struct libscols_table *table,
break; break;
} }
if (str) if (str && scols_line_set_data(line, i, str) != 0)
scols_line_set_data(line, i, str); err_oom();
} }
proc->outline = line; proc->outline = line;