mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-16 08:14:13 +00:00
fixing if's to be correct
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12001 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
ba03619be5
commit
2633fad70e
9 files changed
+19
-19
No files matched your search
@@ -287,13 +287,13 @@ static switch_status_t do_config(void)
|
||||
}
|
||||
} else if (!strcmp(var, "module-directory") && !switch_strlen_zero(val)) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "lua: appending module directory: '%s'\n", val);
|
||||
if(cpath_stream.data_len) {
|
||||
if (cpath_stream.data_len) {
|
||||
cpath_stream.write_function(&cpath_stream, ";");
|
||||
}
|
||||
cpath_stream.write_function(&cpath_stream, "%s", val);
|
||||
} else if (!strcmp(var, "script-directory") && !switch_strlen_zero(val)) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "lua: appending script directory: '%s'\n", val);
|
||||
if(path_stream.data_len) {
|
||||
if (path_stream.data_len) {
|
||||
path_stream.write_function(&path_stream, ";");
|
||||
}
|
||||
path_stream.write_function(&path_stream, "%s", val);
|
||||
|
||||
@@ -113,7 +113,7 @@ switch_status_t setMonoDirs()
|
||||
}
|
||||
}
|
||||
|
||||
if(!found)
|
||||
if (!found)
|
||||
{ // Check registry
|
||||
DWORD size = MAX_PATH;
|
||||
if (ERROR_SUCCESS == RegGetValue(HKEY_LOCAL_MACHINE, "SOFTWARE\\Novell\\Mono\\2.0", "FrameworkAssemblyDirectory", RRF_RT_REG_SZ, NULL, &libPath, &size)) {
|
||||
|
||||
Reference in new issue
Block a user