mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 01:03:08 -07:00
Fix "Couldn't set environment variable..." message on start up (closes #245)
This commit is contained in:
parent
b7de633090
commit
1809de7f1a
1 changed files with 1 additions and 1 deletions
|
@ -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";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue