Changeset: 4dbb9b04d5d2 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=4dbb9b04d5d2
Modified Files:
        gdk/gdk_heap.c
Branch: Jul2012
Log Message:

Don't strcpy a value that has just been set to NULL.


diffs (12 lines):

diff --git a/gdk/gdk_heap.c b/gdk/gdk_heap.c
--- a/gdk/gdk_heap.c
+++ b/gdk/gdk_heap.c
@@ -297,7 +297,7 @@ HEAPalloc(Heap *h, size_t nitems, size_t
                } else {
                        char *ext;
 
-                       strcpy(nme, h->filename);
+                       strcpy(nme, of);
                        ext = decompose_filename(nme);
                        fp = GDKfilelocate(nme, "wb", ext);
                        if (fp != NULL) {
_______________________________________________
Checkin-list mailing list
Checkin-list@monetdb.org
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to