[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.74 and 1.75

version 1.74, 2010/04/21 11:29:59 version 1.75, 2010/04/24 22:02:14
Line 232 
Line 232 
   
                 case 'g':       /* grep command name */                  case 'g':       /* grep command name */
                         free(ps.command);                          free(ps.command);
                         if((ps.command = strdup(optarg)) == NULL);                          if ((ps.command = strdup(optarg)) == NULL)
                                 err(1, NULL);                                  err(1, NULL);
                         break;                          break;
   
Line 863 
Line 863 
                                     tempbuf[1] == '\0')                                      tempbuf[1] == '\0')
                                         ps.command = NULL;                                          ps.command = NULL;
                                 else                                  else
                                         if((ps.command = strdup(tempbuf)) ==                                          if ((ps.command = strdup(tempbuf)) ==
                                             NULL);                                              NULL)
                                                 err(1, NULL);                                                  err(1, NULL);
                                 putr();                                  putr();
                         } else                          } else

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