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
b54d2dde
Commit
b54d2dde
authored
Feb 02, 2016
by
Hisham
Browse files
Check for failure in allocations.
parent
a1f7f286
Changes
42
Show whitespace changes
Inline
Side-by-side
unsupported/UnsupportedProcess.c
View file @
b54d2dde
...
...
@@ -17,7 +17,7 @@ in the source distribution for its full text.
}*/
Process
*
UnsupportedProcess_new
(
Settings
*
settings
)
{
Process
*
this
=
c
alloc
(
1
,
sizeof
(
Process
));
Process
*
this
=
xC
alloc
(
1
,
sizeof
(
Process
));
Object_setClass
(
this
,
Class
(
Process
));
Process_init
(
this
,
settings
);
return
this
;
...
...
unsupported/UnsupportedProcessList.c
View file @
b54d2dde
...
...
@@ -16,7 +16,7 @@ in the source distribution for its full text.
}*/
ProcessList
*
ProcessList_new
(
UsersTable
*
usersTable
,
Hashtable
*
pidWhiteList
,
uid_t
userId
)
{
ProcessList
*
this
=
c
alloc
(
1
,
sizeof
(
ProcessList
));
ProcessList
*
this
=
xC
alloc
(
1
,
sizeof
(
ProcessList
));
ProcessList_init
(
this
,
Class
(
Process
),
usersTable
,
pidWhiteList
,
userId
);
return
this
;
...
...
Prev
1
2
3
Next
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