From b4775b9d292907126b6c0d60f82f70c812c83344 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sat, 24 Nov 2012 10:47:05 +0200 Subject: [PATCH] Fix "Couldn't set environment variable..." message on start up (closes #245) --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 402b59d47..e3f8ebe8c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -273,7 +273,7 @@ int main(int argc, char *argv[]) { } #endif // Set environment variable - if (qputenv("QBITTORRENT", QByteArray(VERSION))) { + if (!qputenv("QBITTORRENT", QByteArray(VERSION))) { std::cerr << "Couldn't set environment variable...\n"; }