mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-23 18:14:06 +00:00
config: Set static copy_string
It is used only within the file.
This commit is contained in:
parent
f43240794f
commit
0cdaf6bf2a
|
@ -100,7 +100,7 @@ int config_destroy(config *cfg)
|
|||
* \param char * string to copy
|
||||
* \return a pointer to the copied string on success, null on failure
|
||||
*/
|
||||
char *copy_string(const char *string)
|
||||
static char *copy_string(const char *string)
|
||||
{
|
||||
// Allocate +1 for \0
|
||||
char *allocated_string = (char *)malloc(strlen(string) + 1);
|
||||
|
|
Loading…
Reference in a new issue