X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/fa7225c82381bac4432a6edf16f53b5370238d85..805875f8be937062d519339f1e38e2c2e81d06e4:/securityd/src/tokencache.cpp?ds=inline diff --git a/securityd/src/tokencache.cpp b/securityd/src/tokencache.cpp index 6b4cf91d..7eb53c9a 100644 --- a/securityd/src/tokencache.cpp +++ b/securityd/src/tokencache.cpp @@ -70,7 +70,8 @@ static unsigned long getFile(const string &path, unsigned long defaultValue) AutoFileDesc fd(path, O_RDONLY, FileDesc::modeMissingOk); if (fd) { string s; fd.readAll(s); - unsigned long value; sscanf(s.c_str(), "%lu", &value); + unsigned long value = defaultValue; + sscanf(s.c_str(), "%lu", &value); return value; } } catch (...) {