diff options
author | Michael Tüxen <tuexen@fh-muenster.de> | 2011-08-05 08:11:27 +0000 |
---|---|---|
committer | Michael Tüxen <tuexen@fh-muenster.de> | 2011-08-05 08:11:27 +0000 |
commit | f924ea67ca1bd03c127fe782b4cae641e89cc4a9 (patch) | |
tree | c11b014473962eb1413664dd3159f5e2a541f914 /capture_sync.c | |
parent | eaffdfeaaa572bb818f116afb3c63b3d43c153ea (diff) |
Simplification suggested by Guy.
svn path=/trunk/; revision=38351
Diffstat (limited to 'capture_sync.c')
-rw-r--r-- | capture_sync.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/capture_sync.c b/capture_sync.c index fb062075be..fef2f94ccf 100644 --- a/capture_sync.c +++ b/capture_sync.c @@ -125,7 +125,6 @@ static int pipe_read_block(int pipe_fd, char *indicator, int len, char *msg, static const char ** sync_pipe_add_arg(const char **args, int *argc, const char *arg) { - char *temparg; /* Grow the array; "*argc" currently contains the number of string pointers, *not* counting the NULL pointer at the end, so we have to add 2 in order to get the new size of the array, including the @@ -134,8 +133,7 @@ sync_pipe_add_arg(const char **args, int *argc, const char *arg) /* Stuff the pointer into the penultimate element of the array, which is the one at the index specified by "*argc". */ - temparg = g_strdup_printf("%s", arg); - args[*argc] = temparg; + args[*argc] = g_strdup(arg); /* Now bump the count. */ (*argc)++; |