From 1cfa84da8e1defe1a9d138c82afa80374eace8ab Mon Sep 17 00:00:00 2001 From: laforge Date: Sun, 22 Oct 2006 18:38:35 +0000 Subject: - fix parsing of unsolicited codes - fix segfault due to missing zero-filled option in 'struct option' array git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@102 99fdad57-331a-0410-800a-d7fa5415bdb3 --- src/gsmd/gsmd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gsmd/gsmd.c') diff --git a/src/gsmd/gsmd.c b/src/gsmd/gsmd.c index e6d9982..f17b7a2 100644 --- a/src/gsmd/gsmd.c +++ b/src/gsmd/gsmd.c @@ -30,7 +30,7 @@ static int gsmd_test_atcb(struct gsmd_atcmd *cmd, void *ctx) static int gsmd_test(struct gsmd *gsmd) { struct gsmd_atcmd *cmd; - cmd = atcmd_fill("AT+CLCK=?", 255, &gsmd_test_atcb, NULL); + cmd = atcmd_fill("AT+CRC?", 255, &gsmd_test_atcb, NULL); return atcmd_submit(gsmd, cmd); } @@ -114,6 +114,7 @@ static struct option opts[] = { { "device", 1, NULL, 'p' }, { "speed", 1, NULL, 's' }, { "logfile", 1, NULL, 'l' }, + { 0, 0, 0, 0 } }; static void print_help(void) -- cgit v1.2.3