Changeset 7ece1fbe in mainline for uspace/srv/fb/fb.c


Ignore:
Timestamp:
2009-06-30T15:31:39Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c063d96e
Parents:
057760d3
Message:

avoid possible segfault

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fb/fb.c

    r057760d3 r7ece1fbe  
    5757#include <fibril.h>
    5858#include <bool.h>
     59#include <stdio.h>
    5960
    6061#include "font-8x16.h"
     
    10681069                        void *dest = as_get_mappable_page(IPC_GET_ARG2(*call));
    10691070                        shm_size = IPC_GET_ARG2(*call);
    1070                         if (!ipc_answer_1(callid, EOK, (sysarg_t) dest))
    1071                                 shm = dest;
    1072                         else
     1071                        if (ipc_answer_1(callid, EOK, (sysarg_t) dest)) {
    10731072                                shm_id = 0;
     1073                                return false;
     1074                        }
     1075                        shm = dest;
    10741076                       
    10751077                        if (shm[0] != 'P')
Note: See TracChangeset for help on using the changeset viewer.