summaryrefslogtreecommitdiffstats
path: root/common/turbojpeg.c
diff options
context:
space:
mode:
authorChristian Beier <dontmind@freeshell.org>2018-11-29 09:51:49 +0100
committerGitHub <noreply@github.com>2018-11-29 09:51:49 +0100
commit19b695e9f8372ed5ea7174dc8f8a669e345305b9 (patch)
treeaf4d6fab87bf3c56e2d726643d2bee56ccadb40f /common/turbojpeg.c
parent1452b9a6ae082382215a8d0ddcdbb38df38d9aeb (diff)
parent716bd27235fe6462271e799a758f2682fa4cb1de (diff)
downloadlibtdevnc-19b695e9f8372ed5ea7174dc8f8a669e345305b9.tar.gz
libtdevnc-19b695e9f8372ed5ea7174dc8f8a669e345305b9.zip
Merge pull request #269 from rgacogne/fix-misleading-indentation
Fix -Wmisleading-indentation warnings
Diffstat (limited to 'common/turbojpeg.c')
-rw-r--r--common/turbojpeg.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/common/turbojpeg.c b/common/turbojpeg.c
index 09df173..934e4f1 100644
--- a/common/turbojpeg.c
+++ b/common/turbojpeg.c
@@ -468,7 +468,8 @@ static tjhandle _tjInitCompress(tjinstance *this)
if(setjmp(this->jerr.setjmp_buffer))
{
/* If we get here, the JPEG code has signaled an error. */
- if(this) free(this); return NULL;
+ if(this) free(this);
+ return NULL;
}
jpeg_create_compress(&this->cinfo);
@@ -652,7 +653,8 @@ static tjhandle _tjInitDecompress(tjinstance *this)
if(setjmp(this->jerr.setjmp_buffer))
{
/* If we get here, the JPEG code has signaled an error. */
- if(this) free(this); return NULL;
+ if(this) free(this);
+ return NULL;
}
jpeg_create_decompress(&this->dinfo);