diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-07-25 15:08:29 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-25 15:08:29 -0400 |
commit | f86f6f829c3fc9544983040ec9d15bbd7df718e3 (patch) | |
tree | 18cc510b3f76256d1c8b0f1351a4a6283aa364e8 /src/basic/fileio.c | |
parent | 82fda58bc3fbe21e0ff609e84d625a38e8f6cca3 (diff) | |
parent | 0b81133facb7576e983ec8427ffc3a4a8cc62846 (diff) |
Merge pull request #3802 from poettering/id128-fixes
Id128 fixes and more
Diffstat (limited to 'src/basic/fileio.c')
-rw-r--r-- | src/basic/fileio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/basic/fileio.c b/src/basic/fileio.c index 47ccfc39d8..f183de4999 100644 --- a/src/basic/fileio.c +++ b/src/basic/fileio.c @@ -1259,7 +1259,8 @@ int open_tmpfile_unlinkable(const char *directory, int flags) { char *p; int fd; - assert(directory); + if (!directory) + directory = "/tmp"; /* Returns an unlinked temporary file that cannot be linked into the file system anymore */ |