aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 3400fd9..a575c5e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -29,8 +29,7 @@ slapt_rc_config *global_config; /* our config struct */
struct slapt_pkg_list *installed;
struct slapt_pkg_list *all;
GtkWidget *gslapt;
-slapt_transaction_t tran;
-slapt_transaction_t *trans = &tran;
+slapt_transaction_t *trans = NULL;
char rc_location[1024];
struct slapt_source_list *disabled_sources;
@@ -57,7 +56,7 @@ int main (int argc, char *argv[]) {
gdk_threads_init();
gtk_init (&argc, &argv);
- slapt_init_transaction(trans);
+ trans = slapt_init_transaction();
add_pixmap_directory (PACKAGE_DATA_DIR "/" PACKAGE "/pixmaps");