Browse Source

Fix "Couldn't set environment variable..." message on start up (closes #245)

adaptive-webui-19844
Christophe Dumez 12 years ago
parent
commit
1809de7f1a
  1. 2
      src/main.cpp

2
src/main.cpp

@ -291,7 +291,7 @@ int main(int argc, char *argv[]) {
} }
#endif #endif
// Set environment variable // Set environment variable
if (qputenv("QBITTORRENT", QByteArray(VERSION))) { if (!qputenv("QBITTORRENT", QByteArray(VERSION))) {
std::cerr << "Couldn't set environment variable...\n"; std::cerr << "Couldn't set environment variable...\n";
} }

Loading…
Cancel
Save