From 0cdaf6bf2a4261141728c14da4f014f21b6e8b5e Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Fri, 21 Feb 2014 13:52:49 +0100 Subject: [PATCH] config: Set static copy_string It is used only within the file. --- src/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.c b/src/config.c index 7faa5fc5..646ba149 100644 --- a/src/config.c +++ b/src/config.c @@ -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);