From: Dan Streetman Date: Mon, 21 Aug 2023 21:39:20 +0000 (-0400) Subject: tpm2: use strempty() X-Git-Tag: v255-rc1~630^2~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=85b6f299b2ae11ea589d373559d43cfe88c8d30f;p=thirdparty%2Fsystemd.git tpm2: use strempty() --- diff --git a/src/shared/tpm2-util.c b/src/shared/tpm2-util.c index 8ba363fdccd..2b9bdb1da45 100644 --- a/src/shared/tpm2-util.c +++ b/src/shared/tpm2-util.c @@ -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.