Changeset dde1b4d for util.c


Ignore:
Timestamp:
Jul 15, 2011, 11:40:47 PM (10 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.8, release-1.9
Children:
c6332f5
Parents:
30d0cf7
git-author:
David Benjamin <davidben@mit.edu> (07/12/11 11:58:02)
git-committer:
David Benjamin <davidben@mit.edu> (07/15/11 23:40:47)
Message:
Use g_build_filename instead of g_strdup_printf to build paths

Saves us a duplicate slash in a few places, although most of the time it
doesn't do anything. Eh, may as well use it and be more explicit or
something.

Also change the one existing call to g_build_path to g_build_filename
instead. It's much less of a pain to use.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • util.c

    rc0c48d14 rdde1b4d  
    388388    if (!g_path_is_absolute(link_path)) {
    389389      char *last_dir = g_path_get_dirname(last_path);
    390       char *tmp = g_build_path(G_DIR_SEPARATOR_S,
    391                                last_dir,
    392                                link_path,
    393                                NULL);
     390      char *tmp = g_build_filename(last_dir, link_path, NULL);
    394391      g_free(last_dir);
    395392      g_free(link_path);
Note: See TracChangeset for help on using the changeset viewer.