]> granicus.if.org Git - python/commitdiff
Patch from Trent Mick:
authorAndrew M. Kuchling <amk@amk.ca>
Tue, 6 Jun 2000 20:52:17 +0000 (20:52 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Tue, 6 Jun 2000 20:52:17 +0000 (20:52 +0000)
Fix a small bug in posixmodule.c where a char* is being
dereferenced where it should not be.

Modules/posixmodule.c

index 20efb0ebfc64a0cfef0d0e44eaa646c9956dc9bf..67096c315767ba4b262c46b69aad548aa34c523e 100644 (file)
@@ -891,7 +891,7 @@ posix_listdir(self, args)
 
        if (FindClose(hFindFile) == FALSE) {
                errno = GetLastError();
-               return posix_error_with_filename(&name);
+               return posix_error_with_filename(name);
        }
 
        return d;