aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-08-27 22:45:15 -0300
committerEuAndreh <eu@euandre.org>2021-08-27 22:45:15 -0300
commit85c80ab6915a58cf84db94077335daeff9d9ba61 (patch)
treea4aa8e72b31ea1b4f4ed446a865d858f97903813
parentsrc/*.c: Add newline between function return type and its name (diff)
downloadgistatic-85c80ab6915a58cf84db94077335daeff9d9ba61.tar.gz
gistatic-85c80ab6915a58cf84db94077335daeff9d9ba61.tar.xz
src/lib.c: Mark local FILE* variable as const
-rw-r--r--src/lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.c b/src/lib.c
index 044ae3f..26aa2b5 100644
--- a/src/lib.c
+++ b/src/lib.c
@@ -2226,7 +2226,7 @@ repo_write(
}
char description[DESCRIPTION_MAXLENGTH] = "";
- FILE *f = fopen(description_path, "r");
+ FILE *const f = fopen(description_path, "r");
if (f) {
if (!fgets(description, sizeof(description), f)) {
logerrs("fget(\"", description_path, "\")",