Skip to content

Commit 6eeec37

Browse files
committed
tree-wide: remove unused variables
1 parent 85df3c6 commit 6eeec37

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

src/core/service.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2163,7 +2163,6 @@ static int service_serialize_exec_command(Unit *u, FILE *f, ExecCommand *command
21632163
unsigned idx;
21642164
const char *type;
21652165
char **arg;
2166-
_cleanup_strv_free_ char **escaped_args = NULL;
21672166
_cleanup_free_ char *args = NULL, *p = NULL;
21682167
size_t allocated = 0, length = 0;
21692168

@@ -2306,7 +2305,7 @@ static int service_deserialize_exec_command(Unit *u, const char *key, const char
23062305
bool control, found = false;
23072306
ServiceExecCommand id = _SERVICE_EXEC_COMMAND_INVALID;
23082307
ExecCommand *command = NULL;
2309-
_cleanup_free_ char *args = NULL, *path = NULL;
2308+
_cleanup_free_ char *path = NULL;
23102309
_cleanup_strv_free_ char **argv = NULL;
23112310

23122311
enum ExecCommandState {

src/import/pull-common.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,6 @@ int pull_verify(PullJob *main_job,
394394
PullJob *signature_job) {
395395

396396
_cleanup_close_pair_ int gpg_pipe[2] = { -1, -1 };
397-
_cleanup_free_ char *fn = NULL;
398397
_cleanup_close_ int sig_file = -1;
399398
char sig_file_path[] = "/tmp/sigXXXXXX", gpg_home[] = "/tmp/gpghomeXXXXXX";
400399
_cleanup_(sigkill_waitp) pid_t pid = 0;

src/import/pull-raw.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,6 @@ static int raw_pull_job_on_open_disk_generic(
580580
const char *extra,
581581
char **temp_path) {
582582

583-
_cleanup_free_ char *p = NULL;
584583
int r;
585584

586585
assert(i);

0 commit comments

Comments
 (0)