Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
last changes of Tesh tools
[simgrid.git] / tools / tesh2 / src / context.c
index 877ffc2..3ddd1b2 100644 (file)
@@ -37,6 +37,7 @@ context_new(void)
 \r
        #ifdef WIN32\r
        context->t_command_line = NULL;\r
+       context->is_not_found = 0;\r
        #endif\r
        \r
        return context;\r
@@ -88,6 +89,9 @@ context_reset(context_t context)
                free(context->t_command_line);\r
                context->t_command_line = NULL;\r
        }\r
+\r
+       context->is_not_found = 0;\r
+\r
        #endif\r
 \r
        if(context->pos)\r
@@ -132,6 +136,7 @@ context_dup(context_t context)
        \r
        #ifdef WIN32\r
        dup->t_command_line = strdup(context->t_command_line);\r
+       dup->is_not_found = context->is_not_found;\r
        #endif\r
 \r
        dup->exit_code = context->exit_code;\r
@@ -187,6 +192,8 @@ context_clear(context_t context)
                free(context->t_command_line);\r
                context->t_command_line = NULL;\r
        }\r
+       context->is_not_found = 0;\r
+\r
        #endif\r
 \r
        if(context->pos)\r