Skip to content

Commit

Permalink
Fix formatting from prior commit
Browse files Browse the repository at this point in the history
  • Loading branch information
lgritz committed Jul 2, 2019
1 parent 483cff5 commit 7c050d7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/libtexture/imagecache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2541,7 +2541,8 @@ ImageCacheImpl::get_image_info(ImageCacheFile* file,
if ((*(int*)data = (file && !file->broken())) == 0) {
// eat any error generated by find_file
std::string* errptr = m_errormessage.get();
if (errptr) errptr->clear();
if (errptr)
errptr->clear();
}
return true;
}
Expand Down Expand Up @@ -2569,7 +2570,8 @@ ImageCacheImpl::get_image_info(ImageCacheFile* file,
if (file->errors_should_issue()) {
// eat any earlier messages
std::string* errptr = m_errormessage.get();
if (errptr) errptr->clear();
if (errptr)
errptr->clear();
errorf("Invalid image file \"%s\": %s", file->filename(),
file->broken_error_message());
}
Expand Down

0 comments on commit 7c050d7

Please sign in to comment.