From 96091e8238fa7f28010196f9155fd3b116643680 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 1 Dec 2012 13:31:18 -0800 Subject: [PATCH] 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 --- uemis-downloader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"))