diff options
| author | 2025-02-17 07:49:11 +0100 | |
|---|---|---|
| committer | 2025-02-17 07:49:11 +0100 | |
| commit | c12a7e38adbce6058ee7d9d4113cce2649c87977 (patch) | |
| tree | b5e4d6f27ea360876683ab5907bc8d763dd47ee6 /data.c | |
| parent | Updated po. (diff) | |
| download | snac2-c12a7e38adbce6058ee7d9d4113cce2649c87977.tar.gz snac2-c12a7e38adbce6058ee7d9d4113cce2649c87977.tar.xz snac2-c12a7e38adbce6058ee7d9d4113cce2649c87977.zip | |
Return ASAP if srv_open() fails.
Diffstat (limited to 'data.c')
| -rw-r--r-- | data.c | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -99,6 +99,9 @@ int srv_open(const char *basedir, int auto_upgrade) | |||
| 99 | if (error != NULL) | 99 | if (error != NULL) |
| 100 | srv_log(error); | 100 | srv_log(error); |
| 101 | 101 | ||
| 102 | if (!ret) | ||
| 103 | return ret; | ||
| 104 | |||
| 102 | /* create the queue/ subdir, just in case */ | 105 | /* create the queue/ subdir, just in case */ |
| 103 | xs *qdir = xs_fmt("%s/queue", srv_basedir); | 106 | xs *qdir = xs_fmt("%s/queue", srv_basedir); |
| 104 | mkdirx(qdir); | 107 | mkdirx(qdir); |