* 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);
}
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,
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();
{
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;