Fix progress bar during libdivecomputer imports

As reported by Mauro Dreissig, the progress bar doesn't work and causes
a SIGSEGV due to a missing allocation.  The code broke when Dirk
separated out the GUI from the core code, and I hadn't tried
divecomputer downloads since.

Reported-by: Mauro Dreissig <mukadr@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Linus Torvalds 2011-09-22 16:38:24 -07:00
parent 15463fdeb2
commit c0adfdc41b
3 changed files with 4 additions and 4 deletions

View file

@ -22,7 +22,7 @@
typedef struct device_data_t {
device_type_t type;
const char *name, *devname;
progressbar_t *progress;
progressbar_t progress;
device_devinfo_t devinfo;
device_clock_t clock;
} device_data_t;