Skip to content

Commit

Permalink
Merge pull request #1144 from tklein23/master
Browse files Browse the repository at this point in the history
Fixed: Segfault when sorting empty lists using CMath::qsort() (re-sent to develop)
  • Loading branch information
iglesias committed Jun 4, 2013
2 parents 196a0a3 + d6b0fbb commit 45d7f76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shogun/mathematics/Math.h
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ class CMath : public CSGObject
template <class T>
static void qsort(T* output, int32_t size)
{
if (size==1)
if (size<=1)
return;

if (size==2)
Expand Down

0 comments on commit 45d7f76

Please sign in to comment.