summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorJohann Latocha2010-08-30 06:47:49 +0200
committerJohann Latocha2010-08-30 06:47:49 +0200
commit5f1e91c7808ebe97b06a5d2e483d06de37ef3a81 (patch)
tree8564d331513717ca37669b1014c74789e0f186f3 /src/util
parentBug fixed: create config-dir (diff)
downloadpvs-5f1e91c7808ebe97b06a5d2e483d06de37ef3a81.tar.gz
pvs-5f1e91c7808ebe97b06a5d2e483d06de37ef3a81.tar.xz
pvs-5f1e91c7808ebe97b06a5d2e483d06de37ef3a81.zip
PVS output errors fixed
Diffstat (limited to 'src/util')
-rwxr-xr-xsrc/util/util.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/util/util.cpp b/src/util/util.cpp
index 7463ae0..8b25b12 100755
--- a/src/util/util.cpp
+++ b/src/util/util.cpp
@@ -205,15 +205,11 @@ QString getUserName()
//Unicode string needs to be converted
username = QString::fromWCharArray(lpszSystemInfo);
- #elif defined __WIN32__
+ #else
struct passwd* passUser = getpwuid(getuid());
-
- if (passwd)
- username = passwd->pw_name;
if (passUser)
- {
username = QString(passUser->pw_name);
- }
+
#endif //#ifdef __WIN32__
if (username.isEmpty())
{