index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2015-04-12 00:01:21 -0400 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2015-05-12 14:00:54 +1000 |
commit | e4af5e3c9787a37103e71c7814564435ec241d4c (patch) | |
tree | e6c34553d2a86505f1f98719f781ecd008b1c11e /lib | |
parent | ae7067440c20c49b3d11c63844d583381282c6b2 (diff) |
-rw-r--r-- | lib/libalpm/log.c | 2 |
diff --git a/lib/libalpm/log.c b/lib/libalpm/log.c index fceb96f4..c049bf90 100644 --- a/lib/libalpm/log.c +++ b/lib/libalpm/log.c @@ -53,7 +53,7 @@ int SYMEXPORT alpm_logaction(alpm_handle_t *handle, const char *prefix, } /* check if the logstream is open already, opening it if needed */ - if(handle->logstream == NULL) { + if(handle->logstream == NULL && handle->logfile != NULL) { int fd; do { fd = open(handle->logfile, O_WRONLY | O_APPEND | O_CREAT | O_CLOEXEC, |