aboutsummaryrefslogtreecommitdiffstats
path: root/rm.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--rm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rm.c b/rm.c
index 00dbd76..27ccf19 100644
--- a/rm.c
+++ b/rm.c
@@ -23,7 +23,7 @@ rm(char *fn, int frc, int ask, int prompt)
}
/* confirm deletion(s) when ask is on, and size is over 0 */
- if (prompt && !frc || (ask && sz > 0)) {
+ if ((prompt && !frc) || (ask && sz > 0)) {
printf("Do you want to delete %s? ", fn);
yn = getchar();