diff options
| author | Valery Febvre <vfebvre at easter-eggs.com> | 2004-05-05 01:04:13 +0000 |
|---|---|---|
| committer | Valery Febvre <vfebvre at easter-eggs.com> | 2004-05-05 01:04:13 +0000 |
| commit | edeb4c17eca3568acd2bdc359003ff9c60d61ab7 (patch) | |
| tree | cfee21ce02c03337e37f8f3395a91b1d92c267e5 | |
| parent | f8d8e5d42a48111244f87e8359d10cf23545a6bf (diff) | |
| download | lasso-edeb4c17eca3568acd2bdc359003ff9c60d61ab7.tar.gz lasso-edeb4c17eca3568acd2bdc359003ff9c60d61ab7.tar.xz lasso-edeb4c17eca3568acd2bdc359003ff9c60d61ab7.zip | |
a big bug fixes in lasso_query_to_dict()
| -rw-r--r-- | lasso/xml/tools.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lasso/xml/tools.c b/lasso/xml/tools.c index b7522647..f654a396 100644 --- a/lasso/xml/tools.c +++ b/lasso/xml/tools.c @@ -154,9 +154,7 @@ lasso_query_to_dict(const xmlChar *query) sa1 = g_strsplit(query, "&", 0); while (sa1[i++] != NULL) { /* split of key=value to get (key, value) sub-strings */ - str_unescaped = lasso_str_unescape(sa1[i-1]); - sa2 = g_strsplit(str_unescaped, "=", 0); - xmlFree(str_unescaped); + sa2 = g_strsplit(sa1[i-1], "=", 0); //printf("%s => ", sa2[0]); /* split of value to get mutli values sub-strings separated by SPACE char */ str_unescaped = lasso_str_unescape(sa2[1]); @@ -174,9 +172,9 @@ lasso_query_to_dict(const xmlChar *query) gdata_query_to_dict_destroy_notify); g_strfreev(sa3); g_strfreev(sa2); - } - + } g_strfreev(sa1); + return (gd); } |
