Fixing a segfault in neural clusters duplicates removal
This commit is contained in:
parent
593a752ecf
commit
ae34e308c4
|
@ -115,6 +115,21 @@ __AI_neural_clusters_to_xml ( kmeans_t *km, AI_alerts_per_neuron *alerts_per_neu
|
|||
{
|
||||
for ( m=0; m < j && !are_equal; m++ )
|
||||
{
|
||||
if ( !( km->clusters ))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if ( !( km->clusters[l] ))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if ( !( km->clusters[l][m] ))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
tmp_key.x = km->clusters[l][m][0];
|
||||
tmp_key.y = km->clusters[l][m][1];
|
||||
HASH_FIND ( hh, alerts_per_neuron, &tmp_key, sizeof ( tmp_key ), tmp_iterator );
|
||||
|
|
Loading…
Reference in New Issue