diff options
author | Lennart Poettering <lennart@poettering.net> | 2021-11-19 11:22:58 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-11-19 11:23:36 +0100 |
commit | f6ec896bc19adc85d72aaefc9185627238b71c7a (patch) | |
tree | b50745d2d89523ba1d72f5658410a82569c12666 /src | |
parent | f85b12d6fdb6c2cce65d61101922a956cf645045 (diff) | |
download | systemd-f6ec896bc19adc85d72aaefc9185627238b71c7a.tar.gz |
gpt: make gpt_partition_type_uuid_from_string() return parameter optional
Diffstat (limited to 'src')
-rw-r--r-- | src/shared/gpt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/gpt.c b/src/shared/gpt.c index 0459ce5bf1..a34a3e5e3b 100644 --- a/src/shared/gpt.c +++ b/src/shared/gpt.c @@ -120,11 +120,11 @@ const char *gpt_partition_type_uuid_to_string_harder( int gpt_partition_type_uuid_from_string(const char *s, sd_id128_t *ret) { assert(s); - assert(ret); for (size_t i = 0; i < ELEMENTSOF(gpt_partition_type_table) - 1; i++) if (streq(s, gpt_partition_type_table[i].name)) { - *ret = gpt_partition_type_table[i].uuid; + if (ret) + *ret = gpt_partition_type_table[i].uuid; return 0; } |