From b1a5a9f720a63541742fa887278923d857cfc814 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Thu, 23 Apr 2026 12:22:39 -0400 Subject: Combine declaration and assignment of fp --- tests/include/testing.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/include/testing.h b/tests/include/testing.h index 6fa5ca6..80d5aa2 100644 --- a/tests/include/testing.h +++ b/tests/include/testing.h @@ -115,8 +115,7 @@ inline char *stasis_testing_read_ascii(const char *filename) { } inline int stasis_testing_write_ascii(const char *filename, const char *data) { - FILE *fp; - fp = fopen(filename, "w+"); + FILE *fp = fopen(filename, "w+"); if (!fp) { perror(filename); return -1; -- cgit