Skip to content
Snippets Groups Projects
Commit fc8ea34f authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

missing return in case of error
parent 0494ffd0
No related branches found
No related tags found
No related merge requests found
// $Id: Extract.cpp,v 1.5 2004-03-13 21:00:19 geuzaine Exp $ // $Id: Extract.cpp,v 1.6 2004-03-15 20:11:41 geuzaine Exp $
// //
// Copyright (C) 1997-2004 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2004 C. Geuzaine, J.-F. Remacle
// //
...@@ -88,6 +88,7 @@ static void extract(int comp, List_T *inList, int inNb, ...@@ -88,6 +88,7 @@ static void extract(int comp, List_T *inList, int inNb,
if(comp < 0 || comp > nbComp-1){ if(comp < 0 || comp > nbComp-1){
Msg(GERROR, "Cannot extract component #(%d+1)=%d from a %d-component field", Msg(GERROR, "Cannot extract component #(%d+1)=%d from a %d-component field",
comp, comp+1, nbComp); comp, comp+1, nbComp);
return;
} }
int nb = List_Nbr(inList) / inNb; int nb = List_Nbr(inList) / inNb;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment