config: Set static copy_string

It is used only within the file.
This commit is contained in:
Luca Barbato 2014-02-21 13:52:49 +01:00
parent f43240794f
commit 0cdaf6bf2a

View file

@ -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);