[sushi] utils: properly initialize pid field for LibreOffice conversion



commit 83f1962d4af2d50c4f73ee725b5cb81fe96192ee
Author: Cosimo Cecchi <cosimo endlessm com>
Date:   Fri Jun 21 14:46:14 2019 -0700

    utils: properly initialize pid field for LibreOffice conversion
    
    This needs to be initialized to -1, or upon an error we'll kill our
    own process through a kill(0) call.

 src/libsushi/sushi-utils.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/libsushi/sushi-utils.c b/src/libsushi/sushi-utils.c
index e034cd6..dcd7e93 100644
--- a/src/libsushi/sushi-utils.c
+++ b/src/libsushi/sushi-utils.c
@@ -357,6 +357,7 @@ sushi_convert_libreoffice (GFile *file,
 {
   GTask *task = g_task_new (NULL, NULL, callback, user_data);
   TaskData *data = g_new0 (TaskData, 1);
+  data->libreoffice_pid = -1;
   data->file = g_object_ref (file);
 
   g_task_set_task_data (task, data, (GDestroyNotify) task_data_free);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]