Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v.external.out: Check for valid array before passing it to qsort (OSG…
…eo#4251) Currently, if 'HAVE_OGR' macro is defined, as part of execution, we sort all formats by name using qsort. But, array containing all formats is assigned based on a conditional and if the conditional fails, it can be NULL. Behavior of qsort when a NULL array is provided is undefined. To avoid getting into that situation, check if the array is NULL before performing qsort on it. Signed-off-by: Mohan Yelugoti <[email protected]>
- Loading branch information