mirror of
https://gitlab.com/klmp200/fish.git
synced 2025-08-06 16:59:56 +00:00
C++ NAZI
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user