diff options
Diffstat (limited to '')
-rw-r--r-- | src/dirvec.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/dirvec.h b/src/dirvec.h index f89c2cd19..2cdfb3196 100644 --- a/src/dirvec.h +++ b/src/dirvec.h @@ -16,6 +16,12 @@ 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 */ |