##// END OF EJS Templates
largefiles: avoid use of uinitialized variable in case of errors
Mads Kiilerich -
r15576:e387e760 stable
parent child Browse files
Show More
@@ -619,10 +619,12 b' def override_archive(orig, repo, dest, n'
619 f = lfutil.splitstandin(f)
619 f = lfutil.splitstandin(f)
620
620
621 def getdatafn():
621 def getdatafn():
622 fd = None
622 try:
623 try:
623 fd = open(path, 'rb')
624 fd = open(path, 'rb')
624 return fd.read()
625 return fd.read()
625 finally:
626 finally:
627 if fd:
626 fd.close()
628 fd.close()
627
629
628 getdata = getdatafn
630 getdata = getdatafn
General Comments 0
You need to be logged in to leave comments. Login now