update to 2.7
[pve-qemu-kvm.git] / debian / patches / pve / 0031-vma-writer-don-t-bail-out-on-zero-length-files.patch
blob27f28ea198144f709627e4fd3661fe2312342ac8
1 From 9625add5f8199243a7b3a4fa045adf25f99ed52d Mon Sep 17 00:00:00 2001
2 From: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 Date: Mon, 8 Feb 2016 08:23:34 +0100
4 Subject: [PATCH 31/41] vma-writer: don't bail out on zero-length files
6 ---
7 vma-writer.c | 1 -
8 1 file changed, 1 deletion(-)
10 diff --git a/vma-writer.c b/vma-writer.c
11 index 0d26fc6..a378762 100644
12 --- a/vma-writer.c
13 +++ b/vma-writer.c
14 @@ -130,7 +130,6 @@ int vma_writer_add_config(VmaWriter *vmaw, const char *name, gpointer data,
15 assert(vmaw->config_count < VMA_MAX_CONFIGS);
16 assert(name);
17 assert(data);
18 - assert(len);
20 gchar *basename = g_path_get_basename(name);
21 uint32_t name_ptr = allocate_header_string(vmaw, basename);
22 --
23 2.1.4