Skip to content

Commit

Permalink
Merge pull request #662 from karlnapf/master
Browse files Browse the repository at this point in the history
fix for segfault
  • Loading branch information
karlnapf committed Jul 20, 2012
2 parents 823ef52 + 443bb05 commit d80d9d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shogun/machine/KernelMachine.cpp
Expand Up @@ -280,7 +280,7 @@ SGVector<float64_t> CKernelMachine::apply_get_outputs(CFeatures* data)
* TODO Heiko Strathmann
*/
CFeatures* rhs=kernel->get_rhs();
int32_t num_vectors=rhs->get_num_vectors();
int32_t num_vectors=rhs ? rhs->get_num_vectors() : kernel->get_num_vec_rhs();
SG_UNREF(rhs)

SGVector<float64_t> output(num_vectors);
Expand Down

0 comments on commit d80d9d3

Please sign in to comment.