summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2017-04-28 23:37:35 +0200
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2017-04-28 23:56:44 +0200
commitb3c908b4a230c5cca0dcdd7e94d02ec54a298abf (patch)
tree64f408309908664bbfd9304a242f25f513224300
parent232bd6779727b950553a879f86f1b74108eeb4b4 (diff)
shared: assert the source for memcpy
-rw-r--r--src/shared/efivars.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/efivars.c b/src/shared/efivars.c
index 8631a5a5d9..8229e6b183 100644
--- a/src/shared/efivars.c
+++ b/src/shared/efivars.c
@@ -269,6 +269,7 @@ int efi_set_variable(
_cleanup_close_ int fd = -1;
assert(name);
+ assert(value);
if (asprintf(&p,
"/sys/firmware/efi/efivars/%s-%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",