File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -1681,9 +1681,7 @@ static int launchctl_remove_plists(void)
1681
1681
1682
1682
static int launchctl_list_contains_plist (const char * name , const char * cmd )
1683
1683
{
1684
- int result ;
1685
1684
struct child_process child = CHILD_PROCESS_INIT ;
1686
- char * uid = launchctl_get_uid ();
1687
1685
1688
1686
strvec_split (& child .args , cmd );
1689
1687
strvec_pushl (& child .args , "list" , name , NULL );
@@ -1694,12 +1692,8 @@ static int launchctl_list_contains_plist(const char *name, const char *cmd)
1694
1692
if (start_command (& child ))
1695
1693
die (_ ("failed to start launchctl" ));
1696
1694
1697
- result = finish_command (& child );
1698
-
1699
- free (uid );
1700
-
1701
1695
/* Returns failure if 'name' doesn't exist. */
1702
- return !result ;
1696
+ return !finish_command ( & child ) ;
1703
1697
}
1704
1698
1705
1699
static int launchctl_schedule_plist (const char * exec_path , enum schedule_priority schedule )
You can’t perform that action at this time.
0 commit comments