More on tilde expansion

Jakub Jelinek jakub at redhat.com
Wed Sep 15 12:44:23 UTC 2004


On Wed, Sep 15, 2004 at 02:41:33PM +0200, Leonard den Ottolander wrote:
> src/filegui.c so this function returns tilde expanded values. See
> attached patch (against CVS-20040915) for details (and please verify its
> validity).

+    g_free (orig_mask);
+    char *tmpdest = dest_dir;
+    dest_dir = tilde_expand(tmpdest);
+    g_free(tmpdest);

Unless ISO C99 compiler is required to build mc, char *tmpdest; either
needs to go up, or you need to add {} around the 3 lines that reference
tmpdest.

	Jakub



More information about the mc-devel mailing list