aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorqorg11 <qorg@vxempire.xyz>2021-06-29 18:33:57 +0200
committerqorg11 <qorg@vxempire.xyz>2021-06-29 18:33:57 +0200
commit6a5b4c2996b84f301695862620cacb8d72464846 (patch)
tree4c758722563cf552960eb943bab683ebff4da5a2
parent03d10a52d883e2a3ae5a4cf6e9d13db7706a06ce (diff)
downloaddemiurge-6a5b4c2996b84f301695862620cacb8d72464846.tar.gz
demiurge-6a5b4c2996b84f301695862620cacb8d72464846.zip
fix warning
-rw-r--r--src/upload_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/upload_file.c b/src/upload_file.c
index 5f937fb..88de19f 100644
--- a/src/upload_file.c
+++ b/src/upload_file.c
@@ -89,7 +89,7 @@ upload_file(const char *path, const char *description, char **id_ptr)
parsed_json = json_tokener_parse(buf);
json_object_object_get_ex(parsed_json, "id", &json_media_id);
const char *media_id = json_object_get_string(json_media_id);
- *id_ptr = media_id;
+ *id_ptr = (char *)media_id;
free(parsed_json);
return 0;