From 1809de7f1ac5aacc659aaf1da0c1e31ff58baf04 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 91750031d..5b7100ea5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -291,7 +291,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"; }