* automake.mk: Add new file.
[pspp-builds.git] / src / ui / gui / find-dialog.c
index 63717dfa59948bc45c0d3a0ee7a7b74f89407294..432afa159ab2fb695ceec59ca8fbf975ba98f379 100644 (file)
@@ -30,18 +30,17 @@ which match particular strings */
 #include <data/datasheet.h>
 #include <data/data-in.h>
 #include "psppire-data-store.h"
-#include <libpspp/alloc.h>
 #include <ctype.h>
 #include <sys/types.h>
 #include <regex.h>
 #include <libpspp/message.h>
 
-
-
 #include <gtk/gtk.h>
 #include <glade/glade.h>
 #include <stdlib.h>
 
+#include "xalloc.h"
+
 #include <gettext.h>
 #define _(msgid) gettext (msgid)
 #define N_(msgid) msgid
@@ -103,8 +102,8 @@ refresh (GObject *obj, const struct find_dialog *fd)
 static void
 do_find (GObject *obj, const struct find_dialog *fd)
 {
-  casenumber x;
-  gint column;
+  casenumber x = -1;
+  gint column = -1;
   gint row;
   gtk_sheet_get_active_cell (fd->data_sheet, &row, NULL);
 
@@ -598,6 +597,7 @@ value_comparator_create (const struct variable *var, const char *target)
   vc->pattern = value_create (width);
 
   if ( ! data_in (ss_cstr (target),
+                  LEGACY_NATIVE,
                  fmt->type,
                  0, 0,
                  vc->pattern, width) )