[PATCH] AT2 compilation warning
Oded Arbel <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi list.
> gw/smsc/smsc_at2.c: In function `at2_format_address_field':
> gw/smsc/smsc_at2.c:2218: warning: `ntype' might be used uninitialized in this function
Oops missed that. here's the fix.
BTW - how can I get CVS write access to the gateway repository ? I guess
a vote is required, right ?
--
Oded Arbel
m-Wise mobile solutions
::..
Mustgo, n.:
Any item of food that has been sitting in the refrigerator so
long it has become a science project.
-- Sniglets, "Rich Hall & Friends"
smsc_at2.patch
(text/plain, 327 B)
--- gw/smsc/smsc_at2.c 2002-08-23 11:21:19.000000000 +0300
+++ gw/smsc/smsc_at2.c 2002-08-23 11:12:06.000000000 +0300
@@ -2215,7 +2215,7 @@
Octstr* at2_format_address_field(Octstr* msisdn)
{
- int ntype;
+ int ntype = PNT_UNKNOWN;
Octstr* out = octstr_create("");
Octstr* temp = octstr_duplicate(msisdn);