diff options
-rw-r--r-- | src/ptx.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -631,9 +631,9 @@ sort_found_occurs (void) { /* Only one language for the time being. */ - - qsort (occurs_table[0], number_of_occurs[0], sizeof **occurs_table, - compare_occurs); + if (number_of_occurs[0]) + qsort (occurs_table[0], number_of_occurs[0], sizeof **occurs_table, + compare_occurs); } /* Parameter files reading routines. */ |