* details.
*
* You should have received a copy of the GNU Lesser General Public
- * License along with these librararies and programs; if not, write
+ * License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
#include <unistd.h>
#include <sys/param.h>
-#ifdef __uxp__
-#include <string.h>
-#endif
-
-#if !defined(USL) && !defined(__uxp__)
#include <strings.h>
-#endif
#include <errno.h>
#include <unistd.h>
#include <sys/utsname.h>
else
_inbox = FALSE;
- if (NULL != mail_file)
- free((void*)mail_file);
+ free((void*)mail_file);
_list = NULL;
_genDialog = NULL;
else
_last_sorted_by = (SortBy) atoi(value);
- if (NULL != value) free((void*) value);
- if (NULL != buffer) XtFree(buffer);
+ free((void*) value);
+ XtFree(buffer);
}
if (!this->baseWidget())
{
fprintf(
- stderr,
+ stderr, "%s",
GETMSG(DT_catd, 2, 3,
"Unable to initialize windows. Exiting.\n"));
exit(1);
int header_lines = (int) strtol(value, NULL, 10);
_list->visibleItems(header_lines);
- if (NULL != value) free((void*) value);
+ free((void*) value);
XtAddCallback(
_list->get_scrolling_list(), XmNhelpCallback,
else if ((DTMailError_t)error == DTME_BadRunGroup)
{
- sprintf(buf, GETMSG(DT_catd, 2, 4,
+ sprintf(buf, "%s", GETMSG(DT_catd, 2, 4,
"Mailer has not been properly installed,\n\
and cannot run because the execution group\n\
is incorrectly set."));
//
displayInCurrentWorkspace();
sprintf(
- buf,
+ buf, "%s",
GETMSG(DT_catd, 99, 99,"The INBOX path has changed.\nReopen?"));
_genDialog->setToQuestionDialog(
GETMSG(DT_catd, 3, 22, "Mailer"),
if (header_lines != _list->visibleItems())
_list->visibleItems(header_lines);
- if (NULL != value)
- free((void*) value);
+ free((void*) value);
_list->checkDisplayProp();
_my_editor->textEditor()->update_display_from_props();
}
else {
buf = new char[2];
- sprintf(buf, "");
+ sprintf(buf, "%s", "");
labelStr = XmStringCreateLocalized(buf);
_clear_message_p = FALSE;
}
{
RoamMenuWindow *obj = (RoamMenuWindow*) client_data;
obj->create_new_container(selection);
- if (NULL != selection) XtFree(selection);
+ XtFree(selection);
}
void
RoamMenuWindow * rmw = (RoamMenuWindow *)client_data;
bval = rmw->syncViewAndStore(op, path, args);
+
+ va_end(args);
return(bval);
}
for (int i=0; i < list->length(); i++)
{
cmd = (*list)[i];
- if (strcmp(filename, cmd->containerName()) == 0)
+ if (filename && strcmp(filename, cmd->containerName()) == 0)
return(i);
}
return(-1);
&mail_file);
is_inbox = (0 == strcmp(mail_file, filename));
- if (NULL != mail_file)
- free((void*) mail_file);
+ free((void*) mail_file);
if (is_inbox)
return;