Loading client/mysqltest.c +6 −5 Original line number Diff line number Diff line Loading @@ -185,7 +185,7 @@ typedef struct */ static char *subst_env_var(const char *cmd); static int my_popen(const char *cmd, const char *mode); static FILE *my_popen(const char *cmd, const char *mode); #define popen(A,B) my_popen((A),(B)) #endif /* __NETWARE__ */ Loading Loading @@ -3509,6 +3509,7 @@ static void get_replace_column(struct st_query *q) static char *subst_env_var(const char *str) { char *result; char *pos; result= pos= my_malloc(MAX_QUERY, MYF(MY_FAE)); while (*str) Loading @@ -3528,7 +3529,7 @@ static char *subst_env_var(const char *str) *str && !isspace(*str) && *str != '\\' && *str != '/' && *str != '$'; str++) *env_pos++ *str; *env_pos++= *str; *env_pos= 0; if (!(subst= getenv(env_var))) Loading Loading @@ -3571,10 +3572,10 @@ static char *subst_env_var(const char *str) #undef popen /* Remove wrapper */ int my_popen(const char *cmd, const char *mode __attribute__((unused)) t) FILE *my_popen(const char *cmd, const char *mode __attribute__((unused))) { char *subst_cmd; int res_file; FILE *res_file; subst_cmd= subst_env_var(cmd); res_file= popen(subst_cmd, "r0"); Loading Loading
client/mysqltest.c +6 −5 Original line number Diff line number Diff line Loading @@ -185,7 +185,7 @@ typedef struct */ static char *subst_env_var(const char *cmd); static int my_popen(const char *cmd, const char *mode); static FILE *my_popen(const char *cmd, const char *mode); #define popen(A,B) my_popen((A),(B)) #endif /* __NETWARE__ */ Loading Loading @@ -3509,6 +3509,7 @@ static void get_replace_column(struct st_query *q) static char *subst_env_var(const char *str) { char *result; char *pos; result= pos= my_malloc(MAX_QUERY, MYF(MY_FAE)); while (*str) Loading @@ -3528,7 +3529,7 @@ static char *subst_env_var(const char *str) *str && !isspace(*str) && *str != '\\' && *str != '/' && *str != '$'; str++) *env_pos++ *str; *env_pos++= *str; *env_pos= 0; if (!(subst= getenv(env_var))) Loading Loading @@ -3571,10 +3572,10 @@ static char *subst_env_var(const char *str) #undef popen /* Remove wrapper */ int my_popen(const char *cmd, const char *mode __attribute__((unused)) t) FILE *my_popen(const char *cmd, const char *mode __attribute__((unused))) { char *subst_cmd; int res_file; FILE *res_file; subst_cmd= subst_env_var(cmd); res_file= popen(subst_cmd, "r0"); Loading