From 02b659277328364d740407dd840523dad0662c9f Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Fri, 24 Jul 2009 09:16:16 +0000 Subject: fixed previous patch git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1075 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmp/qmmp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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"); -- cgit v1.2.3-13-gbd6f