patch-src_send_c 683 B

123456789101112131415161718192021222324252627
  1. $OpenBSD: patch-src_send_c,v 1.1.1.1 2008/04/13 17:45:43 jasper Exp $
  2. --- src/send.c.orig Sun Apr 13 19:06:53 2008
  3. +++ src/send.c Sun Apr 13 19:23:47 2008
  4. @@ -83,9 +83,9 @@ GtkTargetEntry source_table[] = {
  5. gboolean
  6. send_symbol_to_gvim (gchar *symbol) {
  7. -FILE *handle;
  8. +FILE *handle = NULL;
  9. gchar server_name[BUFFER_SIZE];
  10. -gint i, flag, len;
  11. +gint i, flag, len, rc;
  12. gchar *cmdline[4], command[PATH_MAX];
  13. handle = popen(GVIM_SERVERS_LIST_CMD, "r");
  14. @@ -107,7 +107,9 @@ gchar *cmdline[4], command[PATH_MAX];
  15. break;
  16. }
  17. - if(!WIFEXITED(pclose(handle)))
  18. +
  19. + rc = pclose(handle);
  20. + if(!WIFEXITED(rc))
  21. return FALSE;
  22. if (flag) {