]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3647 --resolve fs_cli crash on windows
authorJeff Lenk <jeff@jefflenk.com>
Fri, 28 Oct 2011 13:41:17 +0000 (08:41 -0500)
committerJeff Lenk <jeff@jefflenk.com>
Fri, 28 Oct 2011 13:41:17 +0000 (08:41 -0500)
libs/esl/fs_cli.c

index 4d63f40d63aabfdf6c78f4bab5b1eadf5153c924..7cc0201366cb56206a1aa7298773ec08e93dd621 100644 (file)
@@ -1159,8 +1159,8 @@ int main(int argc, char *argv[])
        int argv_quiet = 0;
        int loops = 2, reconnect = 0, timeout = 0;
 
-       if (!strncasecmp("screen", term, 6) ||
-               !strncasecmp("vt100", term, 5)) {
+       if (term && (!strncasecmp("screen", term, 6) ||
+               !strncasecmp("vt100", term, 5))) {
                feature_level = 1;
        } else {
                feature_level = 0;
@@ -1472,4 +1472,4 @@ int main(int argc, char *argv[])
  * End:
  * For VIM:
  * vim:set softtabstop=4 shiftwidth=4 tabstop=4:
- */
+ */
\ No newline at end of file