From 724500376923b23eae475f899f5f28da46239052 Mon Sep 17 00:00:00 2001 From: Kyle Isom Date: Mon, 24 Nov 2025 23:05:12 -0800 Subject: [PATCH] cleanups --- main.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/main.c b/main.c index 5b725b4..f1d0799 100644 --- a/main.c +++ b/main.c @@ -1752,13 +1752,11 @@ get_cloc_code_lines(const char* filename) } if (fgets(buffer, sizeof(buffer), pipe) != NULL) { - // Remove trailing newline len = strlen(buffer); if (len > 0 && buffer[len - 1] == '\n') { buffer[len - 1] = '\0'; } - // Allocate and copy the string result = malloc(strlen(buffer) + 1); assert(result != NULL); if (result) { @@ -2312,7 +2310,6 @@ loop(void) int main(int argc, char *argv[]) { - // Set locale for proper UTF-8 handling setlocale(LC_ALL, ""); setup_terminal();