X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Flibsystemd-bus%2Fbus-match.c;fp=src%2Flibsystemd-bus%2Fbus-match.c;h=916682aa62ba7642a1cd32ad26743ff32bd4cd12;hp=1411167a7f4af4eb34368c36e458c639609f840f;hb=7ff7394d9e4e9189c30fd018235e6b1728c6f2d0;hpb=fb1316462952d17d6ebf19c3f093b730c13016a7 diff --git a/src/libsystemd-bus/bus-match.c b/src/libsystemd-bus/bus-match.c index 1411167a7..916682aa6 100644 --- a/src/libsystemd-bus/bus-match.c +++ b/src/libsystemd-bus/bus-match.c @@ -768,7 +768,7 @@ int bus_match_parse( } /* Order the whole thing, so that we always generate the same tree */ - qsort(components, n_components, sizeof(struct bus_match_component), match_component_compare); + qsort_safe(components, n_components, sizeof(struct bus_match_component), match_component_compare); /* Check for duplicates */ for (i = 0; i+1 < n_components; i++)