Permalink
Browse files

[bhupload]Fix progressBar-error when linking file.

  • Loading branch information...
1 parent 212d1e5 commit ad0c2eb2cd24da382c4ebb6aa8500e21ab5a92ff @rawler committed Feb 9, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 clients/bhupload.d
View
@@ -99,7 +99,7 @@ private:
File file; /// File to read from
ulong pos; /// Send-position, for progressBar
- ProgressBar pBar; /// ProgressBar, if desired
+ ProgressBar pBar=null; /// ProgressBar, if desired
public:
/************************************************************************************
* Setup from Args, create BitHorde-asset, and begin sending the file
@@ -207,7 +207,7 @@ private:
* Print these, and exit
***********************************************************************************/
void onComplete(IAsset asset, Status status, Identifier[] ids) {
- if (args.progressBar) {
+ if (pBar) {
if (exitStatus == 0) // Successful finish
pBar.finish(pos);
else

0 comments on commit ad0c2eb

Please sign in to comment.