summaryrefslogtreecommitdiff
path: root/utils/wpseditor/libwps/src/proxy.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/wpseditor/libwps/src/proxy.c')
-rw-r--r--utils/wpseditor/libwps/src/proxy.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/utils/wpseditor/libwps/src/proxy.c b/utils/wpseditor/libwps/src/proxy.c
index 3a3b8ce4d9..8f9218e3ff 100644
--- a/utils/wpseditor/libwps/src/proxy.c
+++ b/utils/wpseditor/libwps/src/proxy.c
@@ -69,7 +69,7 @@ void* plugin_get_buffer(size_t *buffer_size)
69int checkwps(const char *filename, int verbose){ 69int checkwps(const char *filename, int verbose){
70 int res; 70 int res;
71 int fd; 71 int fd;
72 72
73 struct wps_data wps; 73 struct wps_data wps;
74 wps_verbose_level = verbose; 74 wps_verbose_level = verbose;
75 75
@@ -104,9 +104,8 @@ int wps_init(const char* filename,struct proxy_api *api, bool isfile){
104 if (!res) 104 if (!res)
105 { 105 {
106 DEBUGF1("ERR: WPS parsing failure\n"); 106 DEBUGF1("ERR: WPS parsing failure\n");
107 return 3; 107 } else
108 } 108 DEBUGF1("WPS parsed OK\n");
109 DEBUGF1("WPS parsed OK\n");
110 DEBUGF1("\n-------------------------------------------------\n"); 109 DEBUGF1("\n-------------------------------------------------\n");
111 wps_state.paused = true; 110 wps_state.paused = true;
112 gwps.data = &wpsdata; 111 gwps.data = &wpsdata;
@@ -115,7 +114,7 @@ int wps_init(const char* filename,struct proxy_api *api, bool isfile){
115 gwps.state->id3 = &id3; 114 gwps.state->id3 = &id3;
116 gwps.state->nid3 = &nid3; 115 gwps.state->nid3 = &nid3;
117 gui_wps[0] = gwps; 116 gui_wps[0] = gwps;
118 return res; 117 return (res?res:3);
119} 118}
120 119
121int wps_display(){ 120int wps_display(){