aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libbus.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libbus.c b/libbus.c
index b691940..85fbdb6 100644
--- a/libbus.c
+++ b/libbus.c
@@ -669,10 +669,8 @@ bus_open(bus_t *restrict bus, const char *restrict file, int flags)
bus->message = NULL;
f = fopen(file, "r");
-
- if (f == NULL) {
+ if (!f)
goto fail;
- }
t(getline(&line, &len, f));
t(bus->key_sem = (key_t)atoll(line));