Index: tape-src/tapeio.c
===================================================================
RCS file: /cvsroot/amanda/amanda/tape-src/tapeio.c,v
retrieving revision 1.20.4.7.4.4.2.5
diff -u -r1.20.4.7.4.4.2.5 tapeio.c
--- tape-src/tapeio.c	5 Dec 2002 19:27:53 -0000	1.20.4.7.4.4.2.5
+++ tape-src/tapeio.c	25 Jan 2003 22:38:23 -0000
@@ -485,8 +485,10 @@
     int mode;
 {
     char *tname;
+    int vslot;
 
-    return vtable[name2slot(filename, &tname)].xxx_tape_access(tname, mode);
+    vslot = name2slot(filename, &tname);
+    return vtable[vslot].xxx_tape_access(tname, mode);
 }
 
 int
@@ -495,8 +497,10 @@
     struct stat *buf;
 {
     char *tname;
+    int vslot;
 
-    return vtable[name2slot(filename, &tname)].xxx_tape_stat(tname, buf);
+    vslot = name2slot(filename, &tname);
+    return vtable[vslot].xxx_tape_stat(tname, buf);
 }
 
 int
