projects
/
platform
/
framework
/
web
/
download-provider.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57ebb09
)
Fix calling of g_string_free_and_steal()
17/307917/1
accepted/tizen/unified/20240318.071216
accepted/tizen/unified/20240322.174345
accepted/tizen/unified/x/20240319.055546
author
JinWang An
<jinwang.an@samsung.com>
Thu, 14 Mar 2024 07:18:58 +0000
(16:18 +0900)
committer
JinWang An
<jinwang.an@samsung.com>
Thu, 14 Mar 2024 07:19:07 +0000
(16:19 +0900)
Change-Id: Ibce062f6601eeb470c65c16ad9dc144779e65f50
Signed-off-by: JinWang An <jinwang.an@samsung.com>
agent/download-agent-plugin-libcurl.c
patch
|
blob
|
history
diff --git
a/agent/download-agent-plugin-libcurl.c
b/agent/download-agent-plugin-libcurl.c
index
e9559bc
..
fbb6d8d
100755
(executable)
--- a/
agent/download-agent-plugin-libcurl.c
+++ b/
agent/download-agent-plugin-libcurl.c
@@
-442,11
+442,11
@@
static char *__get_encoded_url(const char *url)
base = found + 1;
} while (TRUE);
- char *result = encoded_url->str;
#ifdef _USE_G_STRING_FREE
+ char *result = encoded_url->str;
g_string_free(encoded_url, FALSE);
#else
- g_string_free_and_steal(encoded_url);
+
char *result =
g_string_free_and_steal(encoded_url);
#endif
DA_LOGI("encoded url[%s]", result);