Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP7:Update
xmlstarlet
xmlstarlet-xml_depyx.c.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File xmlstarlet-xml_depyx.c.diff of Package xmlstarlet
Index: src/xml_depyx.c =================================================================== --- src/xml_depyx.c.orig +++ src/xml_depyx.c @@ -105,6 +105,7 @@ pyxDePyx(char *file) { static char line[INSZ]; FILE *in = stdin; + int opened_in = 0; if (strcmp(file, "-")) { @@ -114,6 +115,7 @@ pyxDePyx(char *file) fprintf(stderr, "error: could not open: %s\n", file); exit(EXIT_BAD_FILE); } + opened_in = 1; } while (!feof(in)) @@ -206,6 +208,11 @@ pyxDePyx(char *file) } } + if (opened_in) + { + fclose(in); + } + return EXIT_SUCCESS; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor