Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Marvin Schmidt
xserver
Commits
18692160
Commit
18692160
authored
Sep 19, 2000
by
Keith Packard
Browse files
kdrive: make sure allocation worked before accessing
parent
d6e151ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
hw/kdrive/src/kdrive.c
View file @
18692160
...
...
@@ -21,7 +21,7 @@
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $XFree86: xc/programs/Xserver/hw/kdrive/kdrive.c,v 1.
6
2000/0
8/26 00:24:37
keithp Exp $ */
/* $XFree86: xc/programs/Xserver/hw/kdrive/kdrive.c,v 1.
7
2000/0
9/15 15:18:59
keithp Exp $ */
#include "kdrive.h"
#ifdef PSEUDO8
...
...
@@ -465,9 +465,9 @@ KdAllocatePrivates (ScreenPtr pScreen)
kdGeneration
=
serverGeneration
;
}
pScreenPriv
=
(
KdPrivScreenPtr
)
xalloc
(
sizeof
(
*
pScreenPriv
));
memset
(
pScreenPriv
,
'\0'
,
sizeof
(
KdPrivScreenRec
));
if
(
!
pScreenPriv
)
return
FALSE
;
memset
(
pScreenPriv
,
'\0'
,
sizeof
(
KdPrivScreenRec
));
KdSetScreenPriv
(
pScreen
,
pScreenPriv
);
return
TRUE
;
}
...
...
Write
Preview
Supports
Markdown
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