Procházet zdrojové kódy

Fix dead assignment in hexio.c

Serj Kalichev před 3 roky
rodič
revize
4315202813
1 změnil soubory, kde provedl 3 přidání a 2 odebrání
  1. 3 2
      hexio.c

+ 3 - 2
hexio.c

@@ -76,13 +76,14 @@ int64_t next_chunk(const char **buf, size_t *buflen)
 int count_chunks(const char *buf, size_t buflen)
 {
 	int chunks = 0;
-	int64_t chunk;
+
 	while (buflen && *buf != '\0') {
-		if ((chunk = next_chunk(&buf, &buflen)) >= 0)
+		if (next_chunk(&buf, &buflen) >= 0)
 			chunks++;
 		else
 			return -1;
 	}
+
 	return chunks;
 }