snprintf(message, 255, "Can't open %s for writing: %s\n",
to, strerror(errno));
fprintf(stderr, "%s", message);
+ fclose(in);
return 0;
}
{
if ( ! fwrite(buf, 1, n, out) )
{
+ fclose(in);
+ fclose(out);
return 0;
}
}
\r
void linphone_core_message_storage_init(LinphoneCore *lc){\r
int ret;\r
- char *errmsg=NULL;\r
+ const char *errmsg;\r
sqlite3 *db;\r
ret=sqlite3_open(lc->chat_db_file,&db);\r
if(ret != SQLITE_OK) {\r
+ errmsg=sqlite3_errmsg(db);\r
printf("Error in the opening: %s.\n", errmsg);\r
sqlite3_close(db);\r
- sqlite3_free(errmsg);\r
}\r
linphone_create_table(db);\r
lc->db=db;\r
case 480:\r
error=SalErrorFailure;\r
sr=SalReasonTemporarilyUnavailable;\r
+ break;\r
case 486:\r
error=SalErrorFailure;\r
sr=SalReasonBusy;\r
for (k=0;valid_count < SAL_CRYPTO_ALGO_MAX && (attr=sdp_message_attribute_get(msg,i,k))!=NULL;k++){
char tmp[256], tmp2[256];
if (keywordcmp("crypto",attr->a_att_field)==0 && attr->a_att_value!=NULL){
- int nb = sscanf(attr->a_att_value, "%d %256s inline:%256s",
+ int nb = sscanf(attr->a_att_value, "%d %255s inline:%255s",
&stream->crypto[valid_count].tag,
tmp,
tmp2);
void linphone_gtk_in_call_view_terminate(LinphoneCall *call, const char *error_msg){
GtkWidget *callview=(GtkWidget*)linphone_call_get_user_pointer(call);
+ if(callview==NULL) return;
GtkWidget *status=linphone_gtk_get_widget(callview,"in_call_status");
guint taskid=GPOINTER_TO_INT(g_object_get_data(G_OBJECT(callview),"taskid"));
gboolean in_conf=linphone_call_params_local_conference_mode(linphone_call_get_current_params(call));
- if ((callview==NULL) || (status==NULL)) return;
+ if (status==NULL) return;
if (error_msg==NULL)
gtk_label_set_markup(GTK_LABEL(status),_("<b>Call ended.</b>"));
else{