mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 13:45:10 +00:00
[FIX] Fix media C99 fuckups
This commit is contained in:
parent
e54332e376
commit
6e9ba8f0ee
1 changed files with 1 additions and 3 deletions
|
|
@ -138,7 +138,6 @@ ASGetMIMESHA(const ParseeConfig *c, char *mxc, char **mime, char **sha)
|
||||||
char *path, *buf = NULL;
|
char *path, *buf = NULL;
|
||||||
unsigned char *sha1;
|
unsigned char *sha1;
|
||||||
size_t len;
|
size_t len;
|
||||||
bool ret;
|
|
||||||
if (!c || !mxc || !mime || !sha)
|
if (!c || !mxc || !mime || !sha)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
|
@ -165,7 +164,7 @@ ASGetMIMESHA(const ParseeConfig *c, char *mxc, char **mime, char **sha)
|
||||||
StreamCopy(stream, fake);
|
StreamCopy(stream, fake);
|
||||||
StreamClose(fake);
|
StreamClose(fake);
|
||||||
|
|
||||||
sha1 = Sha1Raw(buf, len);
|
sha1 = Sha1Raw((unsigned char *) buf, len);
|
||||||
free(buf);
|
free(buf);
|
||||||
*sha = ShaToHex(sha1, HASH_SHA1);
|
*sha = ShaToHex(sha1, HASH_SHA1);
|
||||||
Free(sha1);
|
Free(sha1);
|
||||||
|
|
@ -183,7 +182,6 @@ ASGrab(const ParseeConfig *c, char *mxc, char **mime, char **out, size_t *len)
|
||||||
Stream *fake;
|
Stream *fake;
|
||||||
Uri *uri;
|
Uri *uri;
|
||||||
char *path, *buf = NULL;
|
char *path, *buf = NULL;
|
||||||
bool ret;
|
|
||||||
if (!c || !mxc || !mime || !out || !len)
|
if (!c || !mxc || !mime || !out || !len)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue