aboutsummaryrefslogtreecommitdiff
path: root/math/gretl/files/patch-lib__src__gretl_matrix.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/gretl/files/patch-lib__src__gretl_matrix.c')
-rw-r--r--math/gretl/files/patch-lib__src__gretl_matrix.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/math/gretl/files/patch-lib__src__gretl_matrix.c b/math/gretl/files/patch-lib__src__gretl_matrix.c
new file mode 100644
index 000000000000..0943f175bcd1
--- /dev/null
+++ b/math/gretl/files/patch-lib__src__gretl_matrix.c
@@ -0,0 +1,17 @@
+--- lib/src/gretl_matrix.c.orig Wed Mar 14 09:25:57 2007
++++ lib/src/gretl_matrix.c Sat Apr 14 03:50:51 2007
+@@ -432,12 +432,13 @@
+ {
+ int reverse = (start > end);
+ int i, k, n = 1 + (reverse ? (start-end) : (end-start));
++ gretl_matrix *v;
+
+ if (n == 0) {
+ return NULL;
+ }
+
+- gretl_matrix *v = gretl_vector_alloc(n);
++ v = gretl_vector_alloc(n);
+
+ if (v == NULL) {
+ return v;