Make a copy instead of pointer for member: base
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 28 Jul 2004 08:05:58 +0000 (08:05 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 28 Jul 2004 08:05:58 +0000 (08:05 +0000)
perl/zebra_perl.c

index 3024d4b..3143415 100644 (file)
@@ -64,7 +64,7 @@ void record_retrieve(RetrievalObj *ro,
     res->errString = "";
   }
   res->position   = ro->records[i].position;
-  res->base       = ro->records[i].base;
+  res->base       = odr_strdup(stream, ro->records[i].base);
   res->format     = (char *) 
     yaz_z3950_oid_value_to_str(ro->records[i].format, CLASS_RECSYN); 
   res->buf        = buf;