diff options
author | Eduardo Chappa <chappa@washington.edu> | 2015-07-26 08:29:05 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2015-07-26 08:29:05 -0600 |
commit | 7c946bfafe961c1dda51d19b5c29a5600ef1e5ec (patch) | |
tree | 608ff1bdeafce3223747418560cb39e045a5683f /alpine/osdep | |
parent | 9306e227fc7b1b096d4a58f8c06da66603a50a6a (diff) | |
download | alpine-7c946bfafe961c1dda51d19b5c29a5600ef1e5ec.tar.xz |
* Fix compilation error in arg.c when pwdcertdir was being freed, even
though a password file might have not been defined.
* Work on reducing the number of warnings in OSX.
Diffstat (limited to 'alpine/osdep')
-rw-r--r-- | alpine/osdep/execview.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/alpine/osdep/execview.c b/alpine/osdep/execview.c index 9ef2855e..4ce5d549 100644 --- a/alpine/osdep/execview.c +++ b/alpine/osdep/execview.c @@ -227,7 +227,7 @@ exec_mailcap_cmd(MCAP_CMD_S *mc_cmd, char *image_file, int needsterminal) r_file_h = &result_file; } - if(syspipe = open_system_pipe(command, r_file_h, NULL, mode, 0, pipe_callback, NULL)){ + if((syspipe = open_system_pipe(command, r_file_h, NULL, mode, 0, pipe_callback, NULL)) != NULL){ close_system_pipe(&syspipe, NULL, pipe_callback); if(needsterminal == 1) q_status_message(SM_ORDER, 0, 4, "VIEWER command completed"); @@ -349,10 +349,9 @@ url_os_specified_browser(char *url) if(mime_os_specific_access()){ return(cpystr("open")); } -#else +#endif /* do nothing here */ return(NULL); -#endif } /* |