]> Creatis software - gdcm.git/commitdiff
ENH: Add security for config problem
authormalaterre <malaterre>
Mon, 17 Jan 2005 16:50:35 +0000 (16:50 +0000)
committermalaterre <malaterre>
Mon, 17 Jan 2005 16:50:35 +0000 (16:50 +0000)
src/gdcmUtil.cxx

index 15277134172498a095b19dd87dacc404c93fd0f5..34359bddd423d9c0953c27600ae13921b1640ad6 100644 (file)
@@ -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
 }