chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mac: rename all calls that apply a label mac_{selinux|smack}_apply_xyz(), and all...
[elogind.git]
/
src
/
udev
/
udev-rules.c
diff --git
a/src/udev/udev-rules.c
b/src/udev/udev-rules.c
index 2a691f6ab7e6021f0dce588b686d306241cf770b..3bc25f7c26980f4f1b2f62ecd6880536fadbc9a8 100644
(file)
--- a/
src/udev/udev-rules.c
+++ b/
src/udev/udev-rules.c
@@
-1575,7
+1575,7
@@
invalid:
}
static int parse_file(struct udev_rules *rules, const char *filename) {
}
static int parse_file(struct udev_rules *rules, const char *filename) {
-
FILE *f
;
+
_cleanup_fclose_ FILE *f = NULL
;
unsigned int first_token;
unsigned int filename_off;
char line[UTIL_LINE_SIZE];
unsigned int first_token;
unsigned int filename_off;
char line[UTIL_LINE_SIZE];
@@
-1633,7
+1633,6
@@
static int parse_file(struct udev_rules *rules, const char *filename) {
}
add_rule(rules, key, filename, filename_off, line_nr);
}
}
add_rule(rules, key, filename, filename_off, line_nr);
}
- fclose(f);
/* link GOTOs to LABEL rules in this file to be able to fast-forward */
for (i = first_token+1; i < rules->token_cur; i++) {
/* link GOTOs to LABEL rules in this file to be able to fast-forward */
for (i = first_token+1; i < rules->token_cur; i++) {