ps --sort bug
This commit is contained in:
@ -266,6 +266,7 @@ static void prep_forest_sort(void){
|
||||
tmp_list->reverse = 0;
|
||||
tmp_list->typecode = '?'; /* what was this for? */
|
||||
tmp_list->sr = incoming->sr;
|
||||
tmp_list->need = incoming->need;
|
||||
tmp_list->next = sort_list;
|
||||
sort_list = tmp_list;
|
||||
}
|
||||
@ -276,6 +277,7 @@ static void prep_forest_sort(void){
|
||||
tmp_list->reverse = 0;
|
||||
tmp_list->typecode = '?'; /* what was this for? */
|
||||
tmp_list->sr = incoming->sr;
|
||||
tmp_list->need = incoming->need;
|
||||
tmp_list->next = sort_list;
|
||||
sort_list = tmp_list;
|
||||
}
|
||||
|
@ -311,6 +311,7 @@ static sort_node *do_one_sort_spec(const char *spec){
|
||||
sort_node *thisnode;
|
||||
thisnode = malloc(sizeof(format_node));
|
||||
thisnode->sr = fs->sr;
|
||||
thisnode->need = fs->need;
|
||||
thisnode->reverse = reverse;
|
||||
thisnode->next = NULL;
|
||||
return thisnode;
|
||||
|
Reference in New Issue
Block a user