From a838b6a09d936225aa7c19aaaabbcc9f37fffdce Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 23 Jan 2008 12:13:30 +0000 Subject: Fix typo --- audio/headset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'audio/headset.c') diff --git a/audio/headset.c b/audio/headset.c index fbc66371..27a1a66a 100644 --- a/audio/headset.c +++ b/audio/headset.c @@ -441,7 +441,7 @@ static gboolean rfcomm_io_cb(GIOChannel *chan, GIOCondition cond, *cr = '\0'; err = handle_event(device, &hs->buf[hs->data_start]); - if (err = -EINVAL) { + if (err == -EINVAL) { error("Received unknown command: %s", &hs->buf[hs->data_start]); err = headset_send(hs, "\r\nERROR\r\n"); } else if (err < 0) -- cgit