aboutsummaryrefslogtreecommitdiff
path: root/modutils/depmod.c
diff options
context:
space:
mode:
Diffstat (limited to 'modutils/depmod.c')
-rw-r--r--modutils/depmod.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modutils/depmod.c b/modutils/depmod.c
index d128ac0ff..b6a914eb0 100644
--- a/modutils/depmod.c
+++ b/modutils/depmod.c
@@ -150,7 +150,7 @@ int depmod_main(int argc UNUSED_PARAM, char **argv)
150 150
151 if (!(option_mask32 & ARG_n)) { /* --dry-run */ 151 if (!(option_mask32 & ARG_n)) { /* --dry-run */
152 chp = concat_path_file(moddir, CONFIG_DEFAULT_DEPMOD_FILE); 152 chp = concat_path_file(moddir, CONFIG_DEFAULT_DEPMOD_FILE);
153 filedes = xfopen(chp, "w"); 153 filedes = xfopen_for_write(chp);
154 if (ENABLE_FEATURE_CLEAN_UP) 154 if (ENABLE_FEATURE_CLEAN_UP)
155 free(chp); 155 free(chp);
156 } 156 }