summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/blurfx.c
diff options
context:
space:
mode:
authortest-tools <test-tools@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-10-09 10:30:59 +0000
committertest-tools <test-tools@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-10-09 10:30:59 +0000
commit49d5f90b23edb7e8ee6bceae8e8d8ff472d67d9e (patch)
tree7082626c76a893c710fd178edeb39e788ae2bec0 /beryl-plugins/src/blurfx.c
parentb0f642a1d6d2c8daf231c8930049626efb1289c6 (diff)
downloadmarex-dev-49d5f90b23edb7e8ee6bceae8e8d8ff472d67d9e.tar.gz
marex-dev-49d5f90b23edb7e8ee6bceae8e8d8ff472d67d9e.tar.bz2
Moved stat() inside error check
git-svn-id: file:///beryl/trunk@565 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/blurfx.c')
-rw-r--r--beryl-plugins/src/blurfx.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/beryl-plugins/src/blurfx.c b/beryl-plugins/src/blurfx.c
index 2ef037e..20781d9 100644
--- a/beryl-plugins/src/blurfx.c
+++ b/beryl-plugins/src/blurfx.c
@@ -4433,10 +4433,10 @@ loadPngToTexture2D (BlurfxScreen * bs, BlurTexture * tex, char *filename)
GLERR;
- stat (filename, &fInfo);
-
- if (!S_ISREG (fInfo.st_mode) || S_ISDIR (fInfo.st_mode)
- || access (filename, F_OK) != 0)
+ if (stat (filename, &fInfo) ||
+ !S_ISREG (fInfo.st_mode) ||
+ S_ISDIR (fInfo.st_mode) ||
+ access (filename, F_OK) != 0)
{
fprintf (stderr, "Unable to read image \"%s\" \n", filename);
return;