зеркало из https://github.com/mozilla/pjs.git
Fix incorrect sscanf r=bryner
Original committer: brettw%gmail.com Original revision: 1.15 Original date: 2006/01/04 22:37:07
This commit is contained in:
Родитель
bab7dd2355
Коммит
345cf7fab1
|
@ -482,7 +482,7 @@ nsNavHistory::TokensToQueries(const nsTArray<QueryKeyValuePair>& aTokens,
|
|||
// folders: FIXME use folder name???
|
||||
} else if (kvp.key.EqualsLiteral(QUERYKEY_FOLDERS)) {
|
||||
PRInt64 folder;
|
||||
if (PR_sscanf(kvp.value.get(), "%lld", folder) == 1) {
|
||||
if (PR_sscanf(kvp.value.get(), "%lld", &folder) == 1) {
|
||||
NS_ENSURE_TRUE(folders.AppendElement(folder), NS_ERROR_OUT_OF_MEMORY);
|
||||
} else {
|
||||
NS_WARNING("folders value in query is invalid, ignoring");
|
||||
|
|
Загрузка…
Ссылка в новой задаче