aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/dirvec.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/dirvec.h b/src/dirvec.h
index cc0b0d6c2..02496cd2b 100644
--- a/src/dirvec.h
+++ b/src/dirvec.h
@@ -16,6 +16,11 @@ int dirvec_delete(struct dirvec *dv, struct directory *del);
void dirvec_add(struct dirvec *dv, struct directory *add);
+static inline void dirvec_clear(struct dirvec *dv)
+{
+ dv->nr = 0;
+}
+
void dirvec_destroy(struct dirvec *dv);
#endif /* DIRVEC_H */