# HG changeset patch # User William Pitcock # Date 1192219619 18000 # Node ID e3d9ef56fec877e5f500d966f040345ecc03b995 # Parent 32124206d46bb12dbaccdb6032f5a2be36c3764c back out my change diff -r 32124206d46b -r e3d9ef56fec8 src/neon/neon.c --- a/src/neon/neon.c Fri Oct 12 14:24:25 2007 -0500 +++ b/src/neon/neon.c Fri Oct 12 15:06:59 2007 -0500 @@ -783,7 +783,7 @@ _DEBUG("Trying to open '%s' with neon", path); - if (NULL == (file = malloc(sizeof(VFSFile)))) { + if (NULL == (file = g_new0(VFSFile, 1))) { _ERROR("Could not allocate memory for filehandle"); _LEAVE NULL; } @@ -1187,12 +1187,9 @@ } _DEBUG("Position to seek to: %ld, current: %ld", newpos, h->pos); - - /* if seek <0, plugin probably wants the beginning of the stream. - cope with it. --nenolod */ if (0 > newpos) { - _DEBUG("A seek was requested before start of stream, seeking to start of stream instead."); - newpos = 0; + _ERROR("Can not seek before start of stream"); + _LEAVE -1; } if (newpos > content_length) {