We should not try to display when ncurses are not initialized. This happens
when sox compalide with -DINTERACIVE is called without -I flag. In this case we
were skipping ncurses initialization but we were trying to call tag_display().
This function is also called when tags are added or deleted. Such
additions/deletions are not expected during non-interactive run but just in
case we should block all attemps with the correction below.

rzm@icm.edu.pl

--- sox.20050917-inst6/src/tag.c.orig	2006-05-28 21:21:05.000000000 +0200
+++ sox.20050917-inst6/src/tag.c	2007-01-07 15:06:54.000000000 +0100
@@ -180,6 +180,7 @@
 	int		row = ROW0-1, col = 0, itime, jtime, maxx, maxy;
 	static int	prevntag = 0;
 
+	if (!beinteractive) return;
 	getmaxyx(win, maxy, maxx);
 	itime = tag_search(time);	/* index of 1st larger time */
 
