ovn-sbctl: Fix possible null pointer to qsort.
Clang reports possible null pointer 'lflows' passed to qsort.
This is due to the checker unable to make sure whether 'lflows'
gets malloc or not in the previous loop.  Fix it by checking the
'n_flows' before calling qsort.
@@ -860,7 +860,10 @@ cmd_lflow_list(struct ctl_context *ctx)
lflows[n_flows] = lflow;
n_flows++;
}
+
+ if (n_flows) {
qsort(lflows, n_flows, sizeof *lflows, lflow_cmp);
+ }
bool print_uuid = shash_find(&ctx->options, "--uuid") != NULL;
