summaryrefslogtreecommitdiffstats
path: root/0001-Fix-unused-but-set-variable.patch
blob: 188574358882b1e2149d93410f9131340642d8c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
From 0345e17e4d8d42e0b6876d4d88a9ee4c88abf567 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Thu, 12 Feb 2026 10:14:49 +0100
Subject: [PATCH] Fix unused-but-set-variable

---
 csv.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/csv.c b/csv.c
index 9d6f778..6f7ece6 100644
--- a/csv.c
+++ b/csv.c
@@ -382,7 +382,6 @@ static HashTable* rfc4180_string_to_hashtable(
 	ZEND_ASSERT(row < end_buffer);
 
 	smart_str field_value = {0};
-	size_t field_value_length = 0;
 
 	/* Main loop to "tokenize" the row */
 	while (row < end_buffer) {
@@ -431,7 +430,6 @@ static HashTable* rfc4180_string_to_hashtable(
 
 			smart_str_free(&field_value);
 
-			field_value_length = 0;
 			at_start_of_field = true;
 			continue;
 		}
@@ -453,7 +451,6 @@ static HashTable* rfc4180_string_to_hashtable(
 		consume:
 		at_start_of_field = false;
 		smart_str_appendc(&field_value, row[0]);
-		field_value_length++;
 		row++;
 	}
 
-- 
2.53.0