1
0
mirror of git://projects.qi-hardware.com/antorcha.git synced 2024-11-22 23:05:19 +02:00

tools/libtxt/edit.c (text2edit): properly finish parsing (it always failed)

This commit is contained in:
Werner Almesberger 2012-06-30 13:02:43 -03:00
parent 6ffcd815f9
commit ccc27577cb

View File

@ -236,6 +236,9 @@ struct edit *text2edit(const char *s)
s = end; s = end;
start = s+1; start = s+1;
} }
if (s != start)
add_string(&last, start, s-start);
return e;
fail: fail:
free_edit(e); free_edit(e);