mbdriver/src/util.cxx
// ===========================================================================
// Return true if LM_LICENSE_FILE is OK, false if it is bad
//
Return true if LM_LICENSE_FILE is OK, false if it is bad
Return true if LM_LICENSE_FILE is OK false if it is bad
bool check_lm_license_file(string &errmsg)
{
    static bool first_time = true;
    static bool ret_val = true;
    if ( first_time && !usingSerialNumber())
    {
	first_time = false;
	const char *envval = getenv("LM_LICENSE_FILE");
	errmsg = "Environment variable LM_LICENSE_FILE is not set.";
	if(envval != NULL) {
	    ret_val = true;
	} else {
	    ret_val = false;
	}
    }
    return ret_val;
}
bool check_lm_license_file ( string & errmsg ) { static bool first_time = true ; static bool ret_val = true ; if ( first_time && ! usingSerialNumber ( ) ) { first_time = false ; const char * envval = getenv ( " " ) ; errmsg = " " ; if ( envval != NULL ) { ret_val = true ; } else { ret_val = false ; } } return ret_val ; }
Return true if LM_LICENSE_FILE is OK, false if it is bad
Return true if LM_LICENSE_FILE is OK false if it is bad