summaryrefslogtreecommitdiffstats
path: root/configd/src/apps/su/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'configd/src/apps/su/main.cpp')
-rw-r--r--configd/src/apps/su/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/configd/src/apps/su/main.cpp b/configd/src/apps/su/main.cpp
index 4cce0b5ead0..e6252e483cb 100644
--- a/configd/src/apps/su/main.cpp
+++ b/configd/src/apps/su/main.cpp
@@ -17,11 +17,11 @@ int main(int argc, char** argv)
exit(1);
}
const char *username = getenv("VESPA_USER");
- if (username == NULL) {
+ if (username == nullptr) {
username = "yahoo";
}
struct passwd *p = getpwnam(username);
- if (p == NULL) {
+ if (p == nullptr) {
fprintf(stderr, "FATAL error: user '%s' missing in passwd file\n", username);
exit(1);
}