aboutsummaryrefslogtreecommitdiff
path: root/src/env-update.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/env-update.c')
-rw-r--r--src/env-update.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/env-update.c b/src/env-update.c
index 254a0348..c9739a78 100644
--- a/src/env-update.c
+++ b/src/env-update.c
@@ -134,7 +134,7 @@ int env_update (int argc, char **argv)
char **entries = NULL;
j = strlen (file);
- if (rc_is_dir (path) != 0 &&
+ if (! rc_is_dir (path) &&
j > 2 &&
*file >= '0' &&
*file <= '9' &&
@@ -297,7 +297,7 @@ int env_update (int argc, char **argv)
if (ldconfig) {
/* Update ld.so.conf only if different */
- if (rc_exists (LDSOCONF) == 0) {
+ if (rc_exists (LDSOCONF)) {
char **lines = rc_get_list (LDSOCONF);
char *line;
ld = false;