mirror of
https://github.com/systemd/systemd.git
synced 2025-01-26 14:04:03 +03:00
tpm2: use strempty()
This commit is contained in:
parent
8e757259c3
commit
85b6f299b2
@ -1771,7 +1771,7 @@ char *tpm2_pcr_value_to_string(const Tpm2PCRValue *pcr_value) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return strjoin(index, hash ? ":" : "", hash ?: "", value ? "=" : "", value ?: "");
|
||||
return strjoin(index, hash ? ":" : "", strempty(hash), value ? "=" : "", strempty(value));
|
||||
}
|
||||
|
||||
/* Parse a string argument into an array of Tpm2PCRValue objects.
|
||||
|
Loading…
x
Reference in New Issue
Block a user