diff --git a/xsnap/sources/xsnap-worker.c b/xsnap/sources/xsnap-worker.c index 613e441..f6866d7 100644 --- a/xsnap/sources/xsnap-worker.c +++ b/xsnap/sources/xsnap-worker.c @@ -340,14 +340,13 @@ int main(int argc, char* argv[]) xsInitializeSharedCluster(); if (argr) { char *path = argv[argr]; - SnapshotStream stream; if (path[0] == '@') { int fd = atoi(path + 1); int tmpfd = dup(fd); if (tmpfd < 0) { snapshot.error = errno; } else { - stream.file = fdopen(tmpfd, "rb"); + snapshot.stream = fdopen(tmpfd, "rb"); } } else { snapshot.stream = fopen(path, "rb");