diff options
author | Guillem Jover <guillem@debian.org> | 2014-08-11 20:40:10 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2014-08-15 03:50:08 +0200 |
commit | f20bb6d7403d85da1994f5cec74af937ef535b80 (patch) | |
tree | 3911acf2e2b6004894f7ef416e7c74bc3466e290 /utils/start-stop-daemon.c | |
parent | d3d2ba1dd39ae02c92efafd4d4541d33665e48fb (diff) | |
download | dpkg-f20bb6d7403d85da1994f5cec74af937ef535b80.tar.gz |
s-s-d: Remove wasteful strlen() comparison before strcmp()
Diffstat (limited to 'utils/start-stop-daemon.c')
-rw-r--r-- | utils/start-stop-daemon.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/utils/start-stop-daemon.c b/utils/start-stop-daemon.c index 5005c327e..901d62f52 100644 --- a/utils/start-stop-daemon.c +++ b/utils/start-stop-daemon.c @@ -1520,8 +1520,6 @@ pid_is_cmd(pid_t pid, const char *name) process_name = kp->kp_proc.p_comm; #endif - if (strlen(name) != strlen(process_name)) - return false; return (strcmp(name, process_name) == 0); } #endif |