Skip to content
  • Erik de Castro Lopo's avatar
    libFLAC/format.c: Fix undefined behaviour · a1458164
    Erik de Castro Lopo authored
    In the case where seek_table->num_points is zero, seek_table->points
    will be NULL and passing that to qsort() invokes undefined behaviour.
    
    Since seek_table->num_points is zero, the only sensible thing to do
    is to short circuit return 0.
    a1458164