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

Diff for /src/usr.bin/top/top.c between version 1.73 and 1.74

version 1.73, 2010/03/26 16:56:00 version 1.74, 2010/04/21 11:29:59
Line 231 
Line 231 
                         break;                          break;
   
                 case 'g':       /* grep command name */                  case 'g':       /* grep command name */
                         ps.command = strdup(optarg);                          free(ps.command);
                           if((ps.command = strdup(optarg)) == NULL);
                                   err(1, NULL);
                         break;                          break;
   
                 default:                  default:
Line 861 
Line 863 
                                     tempbuf[1] == '\0')                                      tempbuf[1] == '\0')
                                         ps.command = NULL;                                          ps.command = NULL;
                                 else                                  else
                                         ps.command = strdup(tempbuf);                                          if((ps.command = strdup(tempbuf)) ==
                                               NULL);
                                                   err(1, NULL);
                                 putr();                                  putr();
                         } else                          } else
                                 clear_message();                                  clear_message();

Legend:
Removed from v.1.73  
changed lines
  Added in v.1.74