location may be null
This commit is contained in:
parent
bf6d09e99a
commit
f9a617a882
@ -25,7 +25,6 @@ void parse_event(char event_string[], struct event **head) {
|
|||||||
assert(end_date != NULL);
|
assert(end_date != NULL);
|
||||||
assert(sequence != NULL);
|
assert(sequence != NULL);
|
||||||
assert(summary != NULL);
|
assert(summary != NULL);
|
||||||
assert(location != NULL);
|
|
||||||
assert(transp != NULL);
|
assert(transp != NULL);
|
||||||
|
|
||||||
strncpy(start_date_str, start_date, end_date - start_date);
|
strncpy(start_date_str, start_date, end_date - start_date);
|
||||||
|
Loading…
Reference in New Issue
Block a user