Commit 9ba10168 authored by Morten Welinder's avatar Morten Welinder Committed by Morten Welinder

Guard against empty entry.

2000-06-30  Morten Welinder  <terra@diku.dk>

	* src/file.c (dialog_query_load_file): Guard against empty entry.
parent 1067a54a
2000-06-30 Morten Welinder <terra@diku.dk>
* src/file.c (dialog_query_load_file): Guard against empty entry.
* src/parse-util.c (parse_cell_name_list): Plug leak.
* src/solver-lp.c (write_constraint_str): Return an allocated
......
2000-06-30 Morten Welinder <terra@diku.dk>
* src/file.c (dialog_query_load_file): Guard against empty entry.
* src/parse-util.c (parse_cell_name_list): Plug leak.
* src/solver-lp.c (write_constraint_str): Return an allocated
......
2000-06-30 Morten Welinder <terra@diku.dk>
* src/file.c (dialog_query_load_file): Guard against empty entry.
* src/parse-util.c (parse_cell_name_list): Plug leak.
* src/solver-lp.c (write_constraint_str): Return an allocated
......
2000-06-30 Morten Welinder <terra@diku.dk>
* src/file.c (dialog_query_load_file): Guard against empty entry.
* src/parse-util.c (parse_cell_name_list): Plug leak.
* src/solver-lp.c (write_constraint_str): Return an allocated
......
2000-06-30 Morten Welinder <terra@diku.dk>
* src/file.c (dialog_query_load_file): Guard against empty entry.
* src/parse-util.c (parse_cell_name_list): Plug leak.
* src/solver-lp.c (write_constraint_str): Return an allocated
......
2000-06-30 Morten Welinder <terra@diku.dk>
* src/file.c (dialog_query_load_file): Guard against empty entry.
* src/parse-util.c (parse_cell_name_list): Plug leak.
* src/solver-lp.c (write_constraint_str): Return an allocated
......
2000-06-30 Morten Welinder <terra@diku.dk>
* src/file.c (dialog_query_load_file): Guard against empty entry.
* src/parse-util.c (parse_cell_name_list): Plug leak.
* src/solver-lp.c (write_constraint_str): Return an allocated
......
......@@ -761,10 +761,10 @@ dialog_query_load_file (Workbook *wb)
gtk_grab_add (GTK_WIDGET (fsel));
gtk_main ();
if (accepted){
if (accepted) {
char *name = gtk_file_selection_get_filename (fsel);
if (name [strlen (name)-1] == '/')
if (*name && name [strlen (name) - 1] == '/')
result = NULL;
else
result = g_strdup (name);
......
2000-06-30 Morten Welinder <terra@diku.dk>
* widget-font-selector.c (font_selector_set_points): Remove
borderline fixed limit.
(fs_fill_font_size_list): Ditto.
2000-06-21 Jody Goldberg <jgoldberg@home.com>
* gtk-combo-stack.c (gtk_combo_stack_destroy) : warning suppression.
......
......@@ -211,7 +211,7 @@ fs_fill_font_size_list (FontSelector *fs)
int i;
for (i = 0; gnumeric_point_sizes [i] != 0; i++) {
char buffer [10];
char buffer [4 * sizeof (int)];
char *array [1];
sprintf (buffer, "%d", gnumeric_point_sizes [i]);
......@@ -386,11 +386,10 @@ font_selector_set_points (FontSelector *fs,
}
if (gnumeric_point_sizes [i] == 0) {
char buffer [20];
sprintf (buffer, "%g", point_size);
char *buffer;
buffer = g_strdup_printf ("%g", point_size);
gtk_entry_set_text (GTK_ENTRY (fs->font_size_entry), buffer);
g_free (buffer);
}
}
......
......@@ -2168,7 +2168,6 @@ xml_read_solver (Sheet *sheet, parse_xml_context_t *ctxt, xmlNodePtr tree,
SolverParameters *param)
{
SolverConstraint *c;
static char buf[256];
xmlNodePtr child;
int col, row;
String *s;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment