diff options
Diffstat (limited to 'xorg-server/record')
-rw-r--r-- | xorg-server/record/record.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xorg-server/record/record.c b/xorg-server/record/record.c index 1b7eb8a43..7a37ec06a 100644 --- a/xorg-server/record/record.c +++ b/xorg-server/record/record.c @@ -2734,7 +2734,7 @@ RecordAClientStateChange(CallbackListPtr *pcbl, pointer nulldata, /* RecordDisableContext modifies contents of ppAllContexts. */ numContextsCopy = numContexts; ppAllContextsCopy = malloc(numContextsCopy * sizeof(RecordContextPtr)); - assert(ppAllContextsCopy); + assert(ppAllContextsCopy!=NULL); memcpy(ppAllContextsCopy, ppAllContexts, numContextsCopy * sizeof(RecordContextPtr)); |