Skip to content

Commit c280615

Browse files
fix coding style
1 parent 9bdcfe5 commit c280615

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pngview/pngview.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,15 +170,17 @@ int main(int argc, char *argv[])
170170

171171
const char *imagePath = argv[optind];
172172

173-
if(strcmp(imagePath, "-") == 0) {
173+
if(strcmp(imagePath, "-") == 0)
174+
{
174175
// Use stdin
175176
if (loadPngFile(&(imageLayer.image), stdin) == false)
176177
{
177178
fprintf(stderr, "unable to load %s\n", imagePath);
178179
exit(EXIT_FAILURE);
179180
}
180181
}
181-
else {
182+
else
183+
{
182184
// Load image from path
183185
if (loadPng(&(imageLayer.image), imagePath) == false)
184186
{

0 commit comments

Comments
 (0)