[BACK]Return to session.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/session.c between version 1.7 and 1.8

version 1.7, 2009/09/07 21:01:50 version 1.8, 2009/09/16 12:35:04
Line 139 
Line 139 
         environ_init(&s->environ);          environ_init(&s->environ);
         if (env != NULL)          if (env != NULL)
                 environ_copy(env, &s->environ);                  environ_copy(env, &s->environ);
         memcpy(&s->tio, tio, sizeof s->tio);  
   
           s->tio = NULL;
           if (tio != NULL) {
                   s->tio = xmalloc(sizeof *s->tio);
                   memcpy(s->tio, tio, sizeof *s->tio);
           }
   
         s->sx = sx;          s->sx = sx;
         s->sy = sy;          s->sy = sy;
   
Line 182 
Line 187 
         while (!ARRAY_EMPTY(&sessions) && ARRAY_LAST(&sessions) == NULL)          while (!ARRAY_EMPTY(&sessions) && ARRAY_LAST(&sessions) == NULL)
                 ARRAY_TRUNC(&sessions, 1);                  ARRAY_TRUNC(&sessions, 1);
   
           if (s->tio != NULL)
                   xfree(s->tio);
   
         session_alert_cancel(s, NULL);          session_alert_cancel(s, NULL);
         environ_free(&s->environ);          environ_free(&s->environ);
         options_free(&s->options);          options_free(&s->options);
Line 237 
Line 245 
   
         hlimit = options_get_number(&s->options, "history-limit");          hlimit = options_get_number(&s->options, "history-limit");
         w = window_create(          w = window_create(
             name, cmd, shell, cwd, &env, &s->tio, s->sx, s->sy, hlimit, cause);              name, cmd, shell, cwd, &env, s->tio, s->sx, s->sy, hlimit, cause);
         if (w == NULL) {          if (w == NULL) {
                 environ_free(&env);                  environ_free(&env);
                 return (NULL);                  return (NULL);

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8