improved non-empty path free error message
This commit is contained in:
parent
98678a9979
commit
1852b6c694
@ -77,9 +77,10 @@ void path_free(path* p){
|
||||
command* tmp;
|
||||
length = g_queue_get_length(p->commands);
|
||||
if(length > 0){
|
||||
fprintf(stderr,"freeing non-empty path\n");
|
||||
fprintf(stderr,"Freeing non-empty path:\n");
|
||||
while(g_queue_get_length(p->commands) > 0){
|
||||
tmp = g_queue_pop_head(p->commands);
|
||||
tmp = g_queue_pop_head(p->commands);
|
||||
fprintf(stderr,"\tTimestamp: %d Turn: %d Accel: %d\n",tmp->ts,tmp->turn,tmp->accel);
|
||||
command_free(tmp);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user