We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bdcfe5 commit c280615Copy full SHA for c280615
pngview/pngview.c
@@ -170,15 +170,17 @@ int main(int argc, char *argv[])
170
171
const char *imagePath = argv[optind];
172
173
- if(strcmp(imagePath, "-") == 0) {
+ if(strcmp(imagePath, "-") == 0)
174
+ {
175
// Use stdin
176
if (loadPngFile(&(imageLayer.image), stdin) == false)
177
{
178
fprintf(stderr, "unable to load %s\n", imagePath);
179
exit(EXIT_FAILURE);
180
}
181
- else {
182
+ else
183
184
// Load image from path
185
if (loadPng(&(imageLayer.image), imagePath) == false)
186
0 commit comments