Index: src/bin/psql/print.c =================================================================== RCS file: /projects/cvsroot/pgsql/src/bin/psql/print.c,v retrieving revision 1.80 diff -c -r1.80 print.c *** src/bin/psql/print.c 10 Feb 2006 00:39:04 -0000 1.80 --- src/bin/psql/print.c 10 Feb 2006 07:07:47 -0000 *************** *** 451,457 **** * format_space contains maximum space required to store formatted string * so we prepare the formatting structures */ ! { int heights_total = 0; struct lineptr *lineptr; --- 451,457 ---- * format_space contains maximum space required to store formatted string * so we prepare the formatting structures */ ! if (col_count > 0) { int heights_total = 0; struct lineptr *lineptr; *************** *** 469,474 **** --- 469,476 ---- col_lineptrs[i]->ptr = format_buf[i]; } + } else { + lineptr_list = NULL; } /* print title */