Fix the use of uninitialized variables.
This commit is contained in:
@@ -182,12 +182,12 @@ impl_gsm_modem_sms_send (MMModemGsmSms *modem,
|
|||||||
DBusGMethodInvocation *context)
|
DBusGMethodInvocation *context)
|
||||||
{
|
{
|
||||||
GValue *value;
|
GValue *value;
|
||||||
const char *number;
|
const char *number = NULL;
|
||||||
const char *text;
|
const char *text = NULL ;
|
||||||
const char *smsc;
|
const char *smsc = NULL;
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
guint validity;
|
guint validity = 0;
|
||||||
guint class;
|
guint class = 0;
|
||||||
|
|
||||||
value = (GValue *) g_hash_table_lookup (properties, "number");
|
value = (GValue *) g_hash_table_lookup (properties, "number");
|
||||||
if (value)
|
if (value)
|
||||||
|
Reference in New Issue
Block a user