This code from display.c is not clean:


  /* check if user wants to allow the host to run commands via strpccmd 
*/
  if (tn5250_config_get (config, "allow_strpccmd"))
    {
      This->allow_strpccmd = tn5250_config_get_bool 
(config, "allow_strpccmd");
    }

The code leaves This->allow_strpccmd unitialized if allow_strpccmd isn't 
set in the config. Found with valgrind.

Either there should be an else part here, or a line should be added to 
tn5250_display_new() to initialize this field.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.