uuidparse: use libuuid function to test nil uuid

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2020-11-22 20:46:40 +00:00
parent 7ed579523b
commit facafe2edb
No known key found for this signature in database
GPG Key ID: 0D46FEF7E61DBB46
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ static void fill_table_row(struct libscols_table *tb, char const *const uuid)
}
switch (type) {
case 0:
if (strspn(uuid, "0-") == 36)
if (uuid_is_null(buf))
str = xstrdup(_("nil"));
else
str = xstrdup(_("unknown"));