Changes between Version 1 and Version 2 of Ticket #3692, comment 5


Ignore:
Timestamp:
09/27/16 20:14:58 (6 years ago)
Author:
alllexx88
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3692, comment 5

    v1 v2  
    101101    char *command; 
    102102    char **envp = g_environ_unsetenv (g_get_environ (), name); 
     103    gboolean success; 
    103104 
    104105 
     
    111112 
    112113 
    113     if (mc_shell_command_success (mc_shell, command, envp)) { 
    114         g_free (command); 
    115         g_strfreev (envp); 
    116         return TRUE; 
    117     } else { 
    118         g_free (command); 
    119         g_strfreev (envp); 
    120         return FALSE; 
    121     } 
     114    success = mc_shell_command_success (mc_shell, command, envp); 
     115    g_free (command); 
     116    g_strfreev (envp); 
     117 
     118    return success; 
    122119} 
    123120