diff options
author | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2017-04-28 23:37:35 +0200 |
---|---|---|
committer | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2017-04-28 23:56:44 +0200 |
commit | b3c908b4a230c5cca0dcdd7e94d02ec54a298abf (patch) | |
tree | 64f408309908664bbfd9304a242f25f513224300 | |
parent | 232bd6779727b950553a879f86f1b74108eeb4b4 (diff) |
shared: assert the source for memcpy
-rw-r--r-- | src/shared/efivars.c | 1 |
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", |