mirror of
https://github.com/cathugger/mkp224o.git
synced 2025-01-10 03:27:19 -03:00
twx
This commit is contained in:
parent
0208fc3fad
commit
d9e4e12bdd
1 changed files with 6 additions and 2 deletions
|
@ -262,7 +262,9 @@ static inline int filter_compare(const void *p1,const void *p2)
|
||||||
|
|
||||||
static void filter_sort(void)
|
static void filter_sort(void)
|
||||||
{
|
{
|
||||||
qsort(&VEC_BUF(filters,0),VEC_LENGTH(filters),sizeof(struct intfilter),&filter_compare);
|
size_t len = VEC_LENGTH(filters);
|
||||||
|
if (len > 0)
|
||||||
|
qsort(&VEC_BUF(filters,0),len,sizeof(struct intfilter),&filter_compare);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // INTFILTER
|
#endif // INTFILTER
|
||||||
|
@ -304,7 +306,9 @@ static inline int filter_compare(const void *p1,const void *p2)
|
||||||
|
|
||||||
static void filter_sort(void)
|
static void filter_sort(void)
|
||||||
{
|
{
|
||||||
qsort(&VEC_BUF(filters,0),VEC_LENGTH(filters),sizeof(struct binfilter),&filter_compare);
|
size_t len = VEC_LENGTH(filters);
|
||||||
|
if (len > 0)
|
||||||
|
qsort(&VEC_BUF(filters,0),len,sizeof(struct binfilter),&filter_compare);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // BINFILTER
|
#endif // BINFILTER
|
||||||
|
|
Loading…
Reference in a new issue