Changeset 506cbf0 in mainline for uspace/app/bdsh/cmds/modules/alias/alias.c
- Timestamp:
- 2018-12-03T21:18:26Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 25cfc3d
- Parents:
- a8c09f91
- git-author:
- Matthieu Riolo <matthieu.riolo@…> (2018-12-03 21:17:06)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2018-12-03 21:18:26)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/alias/alias.c
ra8c09f91 r506cbf0 70 70 71 71 if (alias_link != NULL) { 72 / /update existing value72 /* update existing value */ 73 73 alias_t *data = odict_get_instance(alias_link, alias_t, odict); 74 74 free(data->value); 75 75 data->value = str_dup(value); 76 76 } else { 77 / /add new value77 /* add new value */ 78 78 alias_t *data = (alias_t *)calloc(1, sizeof(alias_t)); 79 79 data->name = str_dup(name);
Note:
See TracChangeset
for help on using the changeset viewer.