]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shared: assert the source for memcpy
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Fri, 28 Apr 2017 21:37:35 +0000 (23:37 +0200)
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Fri, 28 Apr 2017 21:56:44 +0000 (23:56 +0200)
src/shared/efivars.c

index 8631a5a5d9fa4a0eff51a6ac81d25a6b84b93f8f..8229e6b1834402b4cbfe6026eb30cda4640935c1 100644 (file)
@@ -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",