[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-76
From: |
Daniele Forsi |
Subject: |
[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-76-g683b87a |
Date: |
Wed, 15 Dec 2010 22:54:48 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "libgnokii and core programs".
The branch, master has been updated
via 683b87a079a0b9098fe2df3f5bcb22c782262a56 (commit)
from 7ebbeb58dbc88a078ea7d32d500eb12e8143f7e4 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/gnokii.git/commit/?id=683b87a079a0b9098fe2df3f5bcb22c782262a56
commit 683b87a079a0b9098fe2df3f5bcb22c782262a56
Author: Daniele Forsi <address@hidden>
Date: Wed Dec 15 23:23:36 2010 +0100
Print "Cannot read the SMSC number..." also when number is empty
This can happen (see with LG CU515):
AT+CSCA?
+CSCA: "",
OK
diff --git a/gnokii/gnokii-sms.c b/gnokii/gnokii-sms.c
index 01e7096..1f03949 100644
--- a/gnokii/gnokii-sms.c
+++ b/gnokii/gnokii-sms.c
@@ -323,12 +323,13 @@ gn_error sendsms(int argc, char *argv[], gn_data *data,
struct gn_statemachine *
if (gn_sm_functions(GN_OP_GetSMSCenter, data, state) ==
GN_ERR_NONE) {
snprintf(sms.smsc.number, sizeof(sms.smsc.number),
"%s", data->message_center->smsc.number);
sms.smsc.type = data->message_center->smsc.type;
- } else {
- fprintf(stderr, _("Cannot read the SMSC number from
your phone. If the sms send will fail, please use --smsc option explicitely
giving the number.\n"));
}
free(data->message_center);
}
-
+ /* Either GN_OP_GetSMSCenter failed or it succeded and read an empty
number */
+ if (!sms.smsc.number[0]) {
+ fprintf(stderr, _("Cannot read the SMSC number from your phone.
If the sms send will fail, please use --smsc option explicitely giving the
number.\n"));
+ }
if (!sms.smsc.type) sms.smsc.type = GN_GSM_NUMBER_Unknown;
if (curpos != -1) {
-----------------------------------------------------------------------
Summary of changes:
gnokii/gnokii-sms.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
hooks/post-receive
--
libgnokii and core programs
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-76-g683b87a,
Daniele Forsi <=