That "should never happen", but this makes sure that, if it happens, the
compilation fails before it ever divides by the program size.
This should address Coverity CID
1463864.
opt_state->n_blocks = 0;
number_blks_r(opt_state, ic, ic->root);
+ /*
+ * This "should not happen".
+ */
+ if (opt_state->n_blocks == 0)
+ opt_error(opt_state, "filter has no instructions; please report this as a libpcap issue");
+
opt_state->n_edges = 2 * opt_state->n_blocks;
if ((opt_state->n_edges / 2) != opt_state->n_blocks) {
/*