void-packages/srcpkgs/switchboard-plug-printers/patches/ftbfs.patch

24 lines
812 B
Diff

From 3175c2ebf106145a95355d2571e0a2aa4834e884 Mon Sep 17 00:00:00 2001
From: Enerccio <admin@en-circle.com>
Date: Tue, 17 Sep 2019 15:31:37 +0200
Subject: [PATCH] Update cups.vapi (#118)
Fixed bug with compilation
---
vapi/cups.vapi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vapi/cups.vapi b/vapi/cups.vapi
index 7f1b795..5dcdba6 100644
--- vapi/cups.vapi
+++ vapi/cups.vapi
@@ -605,7 +605,7 @@ namespace CUPS {
[CCode (cname = "ippAddBooleans")]
private unowned Attribute _add_booleans (Tag group, string name, [CCode (array_length_pos = 0.9)] char[] values);
public unowned Attribute add_booleans (Tag group, string name, bool[] values) {
- char[] char_values;
+ char[] char_values = {};
foreach (var val in values) {
char_values += val ? 1 : 0;
}