Skip to content

Commit

Permalink
leveldb: fix format not a string literal
Browse files Browse the repository at this point in the history
  • Loading branch information
jamacku committed Apr 26, 2021
1 parent 9ecb0db commit c79604e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions leveldb.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,9 @@ int readServices(struct service **services, char *root_path) {
char *filename = NULL;

if(root_path) {
asprintf(&filename, root_path);
asprintf(&filename, "%s", root_path);
} else {
asprintf(&filename, RUNLEVELS "/init.d");
asprintf(&filename, "%s", RUNLEVELS "/init.d");
}

if (!(dir = opendir(filename))) {
Expand Down

0 comments on commit c79604e

Please sign in to comment.