]> git.ipfire.org Git - pakfire.git/commitdiff
strings: Remove an unused variable
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 10 Feb 2025 17:38:08 +0000 (17:38 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 10 Feb 2025 17:38:08 +0000 (17:38 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/string.c

index 0563f4555a92efe4ce36b4eaf86f722c3612814a..f75084465c958aaa20e3b6e397ec97d0c21156da 100644 (file)
@@ -654,8 +654,6 @@ int __pakfire_strftime_now(char* buffer, size_t length, const char* format) {
 #pragma GCC diagnostic pop
 
 int __pakfire_format_time(char* buffer, const size_t length, const time_t t) {
-       const char* format = NULL;
-
        // Values smaller than zero for t are invalid
        if (t < 0)
                return -EINVAL;