chiark / gitweb /
sysv-generator: don't check first if hashmap contains the service name
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Wed, 17 Sep 2014 21:03:27 +0000 (23:03 +0200)
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Wed, 17 Sep 2014 21:11:58 +0000 (23:11 +0200)
commit8c84621c25c563c7428f3d355136fc542389aab8
tree9c40481a918936630802461588e7d79ecabd94e8
parent2b2332856bafe25c4aa17db2a90bdcddef1fec1a
sysv-generator: don't check first if hashmap contains the service name

Just test if hashmap_get returns null. hashmap_contains does exactly
same thing internally so this is slightly more efficient for the true
case.

Silences a coverity warning too. CID#1237648
src/sysv-generator/sysv-generator.c