Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
b25ac6b0
Commit
b25ac6b0
authored
Oct 26, 2006
by
Hisham Muhammad
Browse files
Handle situation instead of assuming it would never happen,
as it was seen out in the field and tested here.
parent
649419ab
Changes
1
Show whitespace changes
Inline
Side-by-side
ProcessList.c
View file @
b25ac6b0
...
@@ -477,7 +477,7 @@ void ProcessList_processEntries(ProcessList* this, char* dirname, int parent, fl
...
@@ -477,7 +477,7 @@ void ProcessList_processEntries(ProcessList* this, char* dirname, int parent, fl
Process
*
prototype
=
this
->
prototype
;
Process
*
prototype
=
this
->
prototype
;
dir
=
opendir
(
dirname
);
dir
=
opendir
(
dirname
);
assert
(
dir
!=
NULL
)
;
if
(
!
dir
)
return
;
while
((
entry
=
readdir
(
dir
))
!=
NULL
)
{
while
((
entry
=
readdir
(
dir
))
!=
NULL
)
{
char
*
name
=
entry
->
d_name
;
char
*
name
=
entry
->
d_name
;
int
pid
;
int
pid
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment