diff options
| -rw-r--r-- | src/qmmp/qmmp.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qmmp/qmmp.cpp b/src/qmmp/qmmp.cpp index fcf8486b4..a107e29c9 100644 --- a/src/qmmp/qmmp.cpp +++ b/src/qmmp/qmmp.cpp @@ -94,8 +94,8 @@ void Qmmp::setProxy (const QUrl &proxy) const QString Qmmp::pluginsPath() { - const char *path = qgetenv("QMMP_PLUGINS"); - if (path) + QByteArray path = qgetenv("QMMP_PLUGINS"); + if (!path.isEmpty()) return path; #ifdef QMMP_INSTALL_PREFIX QDir dir(QMMP_INSTALL_PREFIX"/"LIB_DIR"/qmmp"); |
