]> git.ipfire.org Git - pakfire.git/commitdiff
libpakfire: parser: Add missing const
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 31 May 2019 05:24:07 +0000 (06:24 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 31 May 2019 05:24:07 +0000 (06:24 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/parser/scanner.l

index a83222fb02a7ab0a281db695963fa48cfca5a889..22c77d4209e562662654b0e0230600b974e201b2 100644 (file)
@@ -32,7 +32,7 @@ int num_lines;
 
 static char* find_name(const char* s, const char* prefix) {
        // Find the name of the package
-       char* name = NULL;
+       const char* name = NULL;
        for (unsigned int i = strlen(s); i > 0; i--) {
                if (isspace(s[i]))
                        break;