]> git.lyx.org Git - lyx.git/blobdiff - src/support/userinfo.cpp
Check return value of regex_match instead of looking at first match
[lyx.git] / src / support / userinfo.cpp
index c873afe24744d9c5616348f97e34662c77869ce3..97c458c7c710882403686494f990a99112611960 100644 (file)
@@ -46,7 +46,7 @@ docstring const user_name()
        return from_local8bit(name);
 #else
        struct passwd * pw = getpwuid(geteuid());
-       LASSERT(pw, /**/);
+       LASSERT(pw, return docstring());
 
        const string gecos = pw->pw_gecos;
        const size_t pos = gecos.find(",");
@@ -64,11 +64,12 @@ docstring const user_email()
        //The code after should be used only after user approval.
        return docstring();
 
-       
+#if 0
        string email = getEnv("EMAIL_ADDRESS");
        if (email.empty())
                email = getEnv("EMAIL");
        return from_local8bit(email);
+#endif
 }
 
 } // namespace support