diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-03-05 12:41:03 -0500 |
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-03-05 12:41:03 -0500 |
| commit | ff9e706905483fceae82c27161d929ee0654c894 (patch) | |
| tree | fd5c3238654cb5678d52a6c648e96262dab003bf /src/lib | |
| parent | bbcf75ba17305eeb3aa00beda2d57a176baf2957 (diff) | |
| download | stasis-ff9e706905483fceae82c27161d929ee0654c894.tar.gz | |
Bugfix: Remove redundant string copy after duplication
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/core/strlist.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/lib/core/strlist.c b/src/lib/core/strlist.c index a0db5f3..b742d37 100644 --- a/src/lib/core/strlist.c +++ b/src/lib/core/strlist.c @@ -47,7 +47,6 @@ void strlist_append(struct StrList **pStrList, char *str) { (*pStrList)->data = tmp; (*pStrList)->data[(*pStrList)->num_inuse] = strdup(str); (*pStrList)->data[(*pStrList)->num_alloc] = NULL; - strcpy((*pStrList)->data[(*pStrList)->num_inuse], str); (*pStrList)->num_inuse++; (*pStrList)->num_alloc++; } |
