Close f if its not stdout, from cppcheck

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25275 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2009-06-08 20:32:59 +00:00
parent 0cac9adc37
commit 58d847961a

View File

@@ -236,5 +236,8 @@ int main(int argc, char **argv)
fprintf(f, "\n");
#endif /* KRB5 */
fprintf(f, "#endif /* %s */\n", hb);
if (f != stdout)
fclose(f);
return 0;
}