X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/77d95881e7050083d85a67c0942c046f24977adc..d1694464b875e336ac335741596b15361929f630:/disobedience/choose.c diff --git a/disobedience/choose.c b/disobedience/choose.c index af811f0..71256c8 100644 --- a/disobedience/choose.c +++ b/disobedience/choose.c @@ -1,6 +1,6 @@ /* * This file is part of DisOrder - * Copyright (C) 2006 Richard Kettlewell + * Copyright (C) 2006, 2007 Richard Kettlewell * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -298,7 +298,7 @@ static void fill_directory_node(struct choosenode *cn) { /* TODO: de-dupe against fill_letter_node */ assert(report_label != 0); gtk_label_set_text(GTK_LABEL(report_label), "getting files"); - cn->children.nvec = 0; + clear_children(cn); cbd = xmalloc(sizeof *cbd); cbd->u.choosenode = cn; disorder_eclient_dirs(client, got_dirs, cn->path, 0, cbd);