mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 21:15:11 +00:00
[MOD/FIX] Separate XMPP thread, fix EINVAL issue
threading is good actually. please hmu if you ever trigger the achievement.
This commit is contained in:
parent
299f473a81
commit
143bdf0a5a
21 changed files with 2314 additions and 1764 deletions
|
|
@ -15,7 +15,7 @@ Command *
|
|||
CommandParse(char *cmd)
|
||||
{
|
||||
Command *ret;
|
||||
char *end_data, *cur, *namestart;
|
||||
char *end_data, *cur, *namestart = NULL;
|
||||
char *key = NULL, *val = NULL;
|
||||
size_t len;
|
||||
CommandState state = STATE_WHITE;
|
||||
|
|
@ -60,7 +60,7 @@ CommandParse(char *cmd)
|
|||
}
|
||||
break;
|
||||
case STATE_NAME:
|
||||
if (c == '=')
|
||||
if (c == '=' && namestart)
|
||||
{
|
||||
len = cur - namestart;
|
||||
key = Malloc(len + 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue