From: malaterre Date: Mon, 17 Jan 2005 16:50:35 +0000 (+0000) Subject: ENH: Add security for config problem X-Git-Tag: Version1.0.bp~285 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=1a1c6ab946b4d0517098796e9714366598a230f3;p=gdcm.git ENH: Add security for config problem --- diff --git a/src/gdcmUtil.cxx b/src/gdcmUtil.cxx index 15277134..34359bdd 100644 --- a/src/gdcmUtil.cxx +++ b/src/gdcmUtil.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmUtil.cxx,v $ Language: C++ - Date: $Date: 2005/01/17 16:44:57 $ - Version: $Revision: 1.104 $ + Date: $Date: 2005/01/17 16:50:35 $ + Version: $Revision: 1.105 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -641,6 +641,9 @@ int GetMacAddrSys ( unsigned char *addr ) } close(sd); #endif + /* Not implemented platforms */ + perror("There was a configuration problem on your plateform"); + memset(addr,0,6); return -1; #endif //__sun }