diff options
| author | Oliver Kiddle <opk@zsh.org> | 2014-11-30 23:19:55 +0100 |
|---|---|---|
| committer | Oliver Kiddle <opk@zsh.org> | 2014-11-30 23:19:55 +0100 |
| commit | 0d4b548d1e4a08105597791fd6308d7fd70d3ddf (patch) | |
| tree | 7d0922511173f14d601bf8599ce806be98ded888 /Src/sort.c | |
| parent | 33816, 33819: GLOB_ASSIGN changes integer and floating type variables to stri... (diff) | |
| download | zsh-0d4b548d1e4a08105597791fd6308d7fd70d3ddf.tar zsh-0d4b548d1e4a08105597791fd6308d7fd70d3ddf.tar.gz zsh-0d4b548d1e4a08105597791fd6308d7fd70d3ddf.tar.bz2 zsh-0d4b548d1e4a08105597791fd6308d7fd70d3ddf.tar.lz zsh-0d4b548d1e4a08105597791fd6308d7fd70d3ddf.tar.xz zsh-0d4b548d1e4a08105597791fd6308d7fd70d3ddf.tar.zst zsh-0d4b548d1e4a08105597791fd6308d7fd70d3ddf.zip | |
33818: fix types passed to sizeof detected by coverity as being wrong
Diffstat (limited to 'Src/sort.c')
| -rw-r--r-- | Src/sort.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/sort.c b/Src/sort.c index 3d00bb576..92ee1c0d4 100644 --- a/Src/sort.c +++ b/Src/sort.c @@ -368,7 +368,7 @@ strmetasort(char **array, int sortwhat, int *unmetalenp) sortdir = (sortwhat & SORTIT_BACKWARDS) ? -1 : 1; sortnumeric = (sortwhat & SORTIT_NUMERICALLY) ? 1 : 0; - qsort(sortptrarr, nsort, sizeof(SortElt *), eltpcmp); + qsort(sortptrarr, nsort, sizeof(SortElt), eltpcmp); sortnumeric = oldsortnumeric; sortdir = oldsortdir; |
