changeset 27:3e6cf8f3aa62

Init file_path
author innparusu
date Tue, 05 Dec 2017 14:03:34 +0900
parents 324a6b216d70
children 3db5360e6e35
files ie-docker.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ie-docker.c	Sat Nov 28 14:51:55 2015 +0900
+++ b/ie-docker.c	Tue Dec 05 14:03:34 2017 +0900
@@ -291,6 +291,7 @@
      * the corresponding script, if invoked.
      */
     char *execv_args[16];
+    char file_path[128] = "";
 
     if (command_is_matched(argv[1], ps_command)) {
         PSLISTPTR pslist = get_pslist(pattern);
@@ -339,8 +340,6 @@
         execv_args[0] = base_exec_command;
         execv_args[1] = cp_command;
         execv_args[2] = argv[2];
-
-        char file_path[128];
         strcat(file_path, name);
         strcat(file_path, ":");
         strcat(file_path, cp_file_path);