Fixed loot_get_masterlist_revision() crash.

When a null database handle was passed.
This commit is contained in:
Oliver Hamlet
2015-01-03 21:57:35 +00:00
parent 8287010ec3
commit 0563441b69
+1 -1
View File
@@ -504,7 +504,7 @@ LOOT_API unsigned int loot_get_masterlist_revision(loot_db db,
char ** const revisionID,
char ** const revisionDate,
bool * const isModified) {
if (masterlistPath == nullptr || revisionID == nullptr || revisionDate == nullptr || isModified == nullptr)
if (db == nullptr || masterlistPath == nullptr || revisionID == nullptr || revisionDate == nullptr || isModified == nullptr)
return c_error(loot_error_invalid_args, "Null pointer passed.");
*revisionID = nullptr;