mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 18:25: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;
|
||||
unsigned char *sha1;
|
||||
size_t len;
|
||||
bool ret;
|
||||
if (!c || !mxc || !mime || !sha)
|
||||
{
|
||||
return false;
|
||||
|
|
@ -165,7 +164,7 @@ ASGetMIMESHA(const ParseeConfig *c, char *mxc, char **mime, char **sha)
|
|||
StreamCopy(stream, fake);
|
||||
StreamClose(fake);
|
||||
|
||||
sha1 = Sha1Raw(buf, len);
|
||||
sha1 = Sha1Raw((unsigned char *) buf, len);
|
||||
free(buf);
|
||||
*sha = ShaToHex(sha1, HASH_SHA1);
|
||||
Free(sha1);
|
||||
|
|
@ -183,7 +182,6 @@ ASGrab(const ParseeConfig *c, char *mxc, char **mime, char **out, size_t *len)
|
|||
Stream *fake;
|
||||
Uri *uri;
|
||||
char *path, *buf = NULL;
|
||||
bool ret;
|
||||
if (!c || !mxc || !mime || !out || !len)
|
||||
{
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue