Text  |   XML   |   Visible Warnings:

pvm3.4.6 : pvm3.4.6 analysis 2 : Unreachable Call  at pvmcruft.c:918

Categories: LANG.STRUCT.UC CWE:561
Warning ID: 239.28876
Procedure: pvmgetroot
Trace: view
Modified: Thu Nov 26 11:28:20 2009   show details
 
Priority: None
State: None
Finding: None
Owner: None
  edit properties

Legend [ X ]
Warning Location
Contributes
Parse Error
Other Warning
Two or More Loop Iterations
On Execution Path
Comment
Macro
Preprocessor
Include
Keyword
Preprocessed Away

Source  |  Language: C Hide Legend     
LineSource
  /kat0/fletcher/SATE/2010/pvm3/src/pvmcruft.c
  Enter pvmgetroot
879 char * 
880 pvmgetroot() 
881 {
882         static char *rd = 0;
883  
884         if (!rd) {
885  
886 #ifdef IMA_CSPP 
887  
888                 struct stat buf;
889  
890                 rd = STRALLOC("/usr/convex/pvm");
891                 if (stat(rd, &buf) == -1) {
892                         pvmlogperror(
893                                 "Unable to default PVM_ROOT to /usr/convex/pvm");
894                         pvmbailout(0);
895                         exit(1);                /* the other meaning of bail out */ 
896                 }
897                 pvmputenv("PVM_ROOT=/usr/convex/pvm");
898                 pvmlogerror("Defaulting PVM_ROOT to /usr/convex/pvm"); 
899  
900 #else 
901  
902 #ifdef CYGWIN 
903                 rd = getenv("PVM_ROOT_U"); 
904 #else 
905                 rd = getenv("PVM_ROOT");
906 #endif 
907  
908 #ifdef WIN32 
909                 if (!rd)
910                         rd = read_pvmregistry("PVM_ROOT"); 
911 #endif 
912  
913 #endif 
914  
915                 if (!rd) {
916                         pvmlogerror("PVM_ROOT environment variable not set.\n");
917                         pvmbailout(0);
918                         exit(1);                /* the other meaning of bail out */     /* Unreachable Call */
919                 }
920         }
921  
922         return rd;
923 } 




Change Warning 239.28876 : Unreachable Call

Priority:
State:
Finding:
Owner:
Note: