refactor
[pspp] / src / ui / gui / psppire-dialog-action-recode.c
index 5bbaf43df7bcc9c7adef3fa4f0af8fe00473ab7c..3b7165f5cb2c2f9256f34f254596a76bdf864a74 100644 (file)
@@ -1,6 +1,6 @@
 /* PSPPIRE - a graphical user interface for PSPP.
    Copyright (C) 2007, 2009, 2010, 2011, 2012, 2014, 2016,
-   2020  Free Software Foundation
+   2020, 2022  Free Software Foundation
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
 
 #include "helper.h"
 #include <ui/syntax-gen.h>
+#include "ui/gui/glibfix.h"
 
 #include "gettext.h"
 #define _(msgid) gettext (msgid)
 #define N_(msgid) msgid
 
-
 /* This might need to be changed to something less naive.
    In particular, what happends with dates, etc?
  */
@@ -71,7 +71,7 @@ struct new_value
 static struct new_value *
 new_value_copy (struct new_value *nv)
 {
-  struct new_value *copy = g_memdup (nv, sizeof (*copy));
+  struct new_value *copy = g_memdup2 (nv, sizeof (*copy));
 
   if (nv->type == NV_STRING)
     copy->v.s = xstrdup (nv->v.s);