summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-04-11 14:16:51 +0200
committerYorhel <git@yorhel.nl>2009-04-11 14:16:51 +0200
commitfb7b9f94dfe5d9c14c53e43ccd0eeda63c979d7e (patch)
tree85bc384dbd6432cfacf68c83d039752f72ae18f5
parent690eb3f5930079698f2e318c8be29fd6ef0c0a71 (diff)
util.c:freedir() doesn't have to do anything with the selected flag
-rw-r--r--src/util.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/util.c b/src/util.c
index f218381..930610d 100644
--- a/src/util.c
+++ b/src/util.c
@@ -217,13 +217,11 @@ struct dir *freedir(struct dir *dr) {
if(cur == NULL && dr->parent->parent)
cur = dr->parent;
}
- if(cur != NULL)
- cur->flags |= FF_BSEL;
free(dr->name);
free(dr);
- return(cur);
+ return cur;
}