]> git.ipfire.org Git - pakfire.git/commitdiff
key: Fix wrong passing of string
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 25 Jul 2023 11:37:19 +0000 (11:37 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 25 Jul 2023 12:58:49 +0000 (12:58 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/key.c

index 44844c9899085656caf4f8efa12708f8c908e4c3..20c12d42290e3d9c204ef1e73e57dfcb74a52507 100644 (file)
@@ -188,7 +188,7 @@ PAKFIRE_EXPORT const char* pakfire_key_get_algo(struct pakfire_key* key) {
 }
 
 PAKFIRE_EXPORT const char* pakfire_key_get_comment(struct pakfire_key* key) {
-       return &key->comment;
+       return key->comment;
 }
 
 PAKFIRE_EXPORT int pakfire_key_generate(struct pakfire_key** key, struct pakfire* pakfire,