mirror of
https://gitlab.com/klmp200/fish.git
synced 2024-11-21 16:23:20 +00:00
C++ NAZI
This commit is contained in:
parent
de18074b89
commit
c0e130cb71
@ -20,7 +20,7 @@ pipe_redirection * getRedirection(){
|
|||||||
if (redirection == NULL){
|
if (redirection == NULL){
|
||||||
redirection = (pipe_redirection*) malloc(sizeof(pipe_redirection));
|
redirection = (pipe_redirection*) malloc(sizeof(pipe_redirection));
|
||||||
if (redirection == NULL) crash();
|
if (redirection == NULL) crash();
|
||||||
redirection->file_name = strdup(template);
|
redirection->file_name = strdup((char*) template);
|
||||||
redirection->tmp_file = mkstemp(redirection->file_name);
|
redirection->tmp_file = mkstemp(redirection->file_name);
|
||||||
redirection->to_use = 0;
|
redirection->to_use = 0;
|
||||||
redirection->read = 0;
|
redirection->read = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user