Changeset 857fba8 in mainline for uspace/lib/fmgt/test/walk.c


Ignore:
Timestamp:
2026-02-10T19:35:01Z (11 days ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
59ed424e
Parents:
0ce9eb8
Message:

Move file system wrapper functions to a separate module.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/fmgt/test/walk.c

    r0ce9eb8 r857fba8  
    11/*
    2  * Copyright (c) 2025 Jiri Svoboda
     2 * Copyright (c) 2026 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    212212        resp->dir_enter = true;
    213213        resp->dirname = str_dup(fname);
    214         resp->de_dest = str_dup(dest);
     214        resp->de_dest = (dest != NULL) ? str_dup(dest) : NULL;
    215215        return resp->rc;
    216216}
     
    220220        test_resp_t *resp = (test_resp_t *)arg;
    221221        resp->dir_leave = true;
    222         resp->dl_dest = str_dup(dest);
     222        resp->dl_dest = (dest != NULL) ? str_dup(dest) : NULL;
    223223        return resp->rc;
    224224}
     
    229229        resp->file_proc = true;
    230230        resp->fname = str_dup(fname);
    231         resp->dest = str_dup(dest);
     231        resp->dest = (dest != NULL) ? str_dup(dest) : NULL;
    232232        return resp->rc;
    233233}
Note: See TracChangeset for help on using the changeset viewer.