X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=account.cpp;fp=account.cpp;h=19dc66e82d5c75bc900f24c33d6c86383310a591;hb=f05bb553036cf067637ca20223065a8f652df90b;hp=5e6523f5383aa5cd4337ca77e359325ef0f0e751;hpb=db7dde39ddc5176b67cb9f974eb5daaa5c739a2a;p=nssm.git diff --git a/account.cpp b/account.cpp index 5e6523f..19dc66e 100644 --- a/account.cpp +++ b/account.cpp @@ -166,6 +166,7 @@ const TCHAR *well_known_sid(SID *sid) { } const TCHAR *well_known_username(const TCHAR *username) { + if (! username) return NSSM_LOCALSYSTEM_ACCOUNT; if (str_equiv(username, NSSM_LOCALSYSTEM_ACCOUNT)) return NSSM_LOCALSYSTEM_ACCOUNT; SID *sid; int r = username_sid(username, &sid);