Re: [Planner Dev] Bug in planner-window.c:get_last_dir
- From: Richard Hult <richard imendio com>
- To: Planner Dev <planner-dev lists imendio com>
- Subject: Re: [Planner Dev] Bug in planner-window.c:get_last_dir
- Date: Wed, 28 Jul 2004 16:56:52 +0200
On ons, 2004-07-28 at 17:46 +0300, Jani tiainen wrote:
> In planner-window.c, function get_last_dir there is condition:
>
>
> 599 if (last_dir[strlen (last_dir)] != G_DIR_SEPARATOR) {
> 600 gchar *tmp;
> 601
> 602 tmp = g_strconcat (last_dir, G_DIR_SEPARATOR_S, NULL);
> 603 g_free (last_dir);
> 604 last_dir = tmp;
> 605 }
> 606
>
> should there be:
>
> if (last_dir[strlen(last_dir) - 1] != G_DIR_SEPARATOR) {
Yeah, but we can remove that check altogether now that we are using the
filechooser (since that doesn't need the slash).
/Richard
--
Imendio HB, http://www.imendio.com/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]