}
file_id = row[0];
-
+ if (int.parse(file_id) < 1) {
+ GLib.debug("ERROR - CALL to attachment_init failed - returned 0?");
+ Posix.unlink(fn);
+ return;
+
+ }
GLib.debug("fn = %s, m5=%s, id= %s", filename, mime_type, this.active_message_id);
-
-
- )
- );
this.used_space_after += file_size;
- var file_id_real = this.mysql.insert_id();
- GLib.debug("Got file_id = %d\n", (int)file_id_real);
- if (file_id_real == 0) {
- GLib.Process.exit(1);
- }
+
file_id = "%d".printf((int)file_id_real);