diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2012-12-01 13:31:18 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-12-01 13:31:18 -0800 |
commit | 96091e8238fa7f28010196f9155fd3b116643680 (patch) | |
tree | ac1cf10ab44a51fe5f6a8e7cebfa30e4b139e321 /uemis-downloader.c | |
parent | 79c2b002124e3378de5df58da53b153d8518d295 (diff) | |
download | subsurface-96091e8238fa7f28010196f9155fd3b116643680.tar.gz |
Fix stupid error in last minute cleanup of Uemis rewrite
Never make trivial changes without testing them. This was missung a '!'
before the strcmp - so the wrong code got executed when trying to get the
DeviceId and everything afterwards failed without a valid DeviceId.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'uemis-downloader.c')
-rw-r--r-- | uemis-downloader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/uemis-downloader.c b/uemis-downloader.c index c80b1e929..fc5944cea 100644 --- a/uemis-downloader.c +++ b/uemis-downloader.c @@ -367,7 +367,7 @@ static gboolean uemis_get_answer(const char *path, char *request, int n_param_in for (i = 0; i < n_param_in; i++) str_append_with_delim(sb, param_buff[i]); if (! strcmp(request, "getDivelogs") || ! strcmp(request, "getDeviceData") || ! strcmp(request, "getDirectory") || - ! strcmp(request, "getDivespot") || strcmp(request, "getDive")) { + ! strcmp(request, "getDivespot") || ! strcmp(request, "getDive")) { answer_in_mbuf = TRUE; str_append_with_delim(sb, ""); if (! strcmp(request, "getDivelogs")) |