1
0
mirror of https://gitlab.com/klmp200/fish.git synced 2024-12-22 07:41:08 +00:00
This commit is contained in:
Antoine Bartuccio 2017-06-11 02:21:09 +02:00
parent de18074b89
commit c0e130cb71

View File

@ -20,7 +20,7 @@ pipe_redirection * getRedirection(){
if (redirection == NULL){
redirection = (pipe_redirection*) malloc(sizeof(pipe_redirection));
if (redirection == NULL) crash();
redirection->file_name = strdup(template);
redirection->file_name = strdup((char*) template);
redirection->tmp_file = mkstemp(redirection->file_name);
redirection->to_use = 0;
redirection->read = 0;