Skip to content

Commit

Permalink
Fix check if image exits
Browse files Browse the repository at this point in the history
  • Loading branch information
tesonep committed Aug 11, 2023
1 parent 8ba7eb5 commit 53d28be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ loadPharoImage(const char* fileName)
struct stat sb;

/* Check image exists */
if (stat(fileName, &sb) == -1) {
if (!sqImageFileExists(fileName)) {
logErrorFromErrno("Image file not found");
return false;
}
Expand Down

0 comments on commit 53d28be

Please sign in to comment.