ladishd: remove unneeded asignment

unescape() receives length that includes the terminating nul char
This commit is contained in:
Nedko Arnaudov 2010-11-13 15:49:38 +02:00
parent 0ff72305db
commit a99c3e6408
1 changed files with 2 additions and 2 deletions

View File

@ -110,7 +110,7 @@ static void callback_elstart(void * data, const char * el, const char ** attr)
return;
}
room_ptr->project_name[unescape(name, len, room_ptr->project_name)] = 0;
unescape(name, len, room_ptr->project_name);
log_info("Project '%s' with uuid %s", room_ptr->project_name, uuid_str);
@ -796,7 +796,7 @@ static void project_name_elstart_callback(void * data, const char * el, const ch
log_error("malloc() failed for project name with length %zu", len);
}
context_ptr->str[unescape(name, len, context_ptr->str)] = 0;
unescape(name, len, context_ptr->str);
}
XML_StopParser(context_ptr->parser, XML_TRUE);