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"; }