aboutsummaryrefslogtreecommitdiffhomepage
path: root/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/parser.c b/parser.c
index c115aafb..83e88533 100644
--- a/parser.c
+++ b/parser.c
@@ -1309,16 +1309,8 @@ static void parse_job_argument_list( process_t *p,
workaround and a huge hack, but as near as I can tell, the
alternatives are worse.
*/
- if( p->actual_cmd )
- {
- wchar_t *woot = wcsrchr( p->actual_cmd, L'/' );
- if( !woot )
- woot = p->actual_cmd;
- else
- woot++;
- proc_is_count = wcscmp( woot, L"count" )==0;
- }
-
+ proc_is_count = (wcscmp( (wchar_t *)al_get( args, 0 ), L"count" )==0);
+
while( 1 )
{