Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/vfs/vfs.c

    r7d7bc09 rae7d03c  
    285285{
    286286        size_t abs_size;
    287         char *abs_path = vfs_absolutize(path, &abs_size);
    288         if (abs_path == NULL)
     287        char *abs = vfs_absolutize(path, &abs_size);
     288        if (!abs)
    289289                return ENOMEM;
    290290
    291291        int fd;
    292         errno_t rc = vfs_lookup(abs_path, WALK_DIRECTORY, &fd);
     292        errno_t rc = vfs_lookup(abs, WALK_DIRECTORY, &fd);
    293293        if (rc != EOK) {
    294                 free(abs_path);
     294                free(abs);
    295295                return rc;
    296296        }
     
    305305
    306306        cwd_fd = fd;
    307         cwd_path = abs_path;
     307        cwd_path = abs;
    308308        cwd_size = abs_size;
    309309
Note: See TracChangeset for help on using the changeset viewer.