]> andersk Git - moira.git/blame - lib/mr_init.c
Avoid buffer overruns and check return value of malloc()
[moira.git] / lib / mr_init.c
CommitLineData
fa59b86f 1/* $Id$
0fa91a0a 2 *
7ac48069 3 * Initialize libmoira
4 *
5 * Copyright (C) 1987-1990 by the Massachusetts Institute of Technology
6 * For copying and distribution information, please see the file
7 * <mit-copyright.h>.
0fa91a0a 8 */
9
babbc197 10#include <mit-copyright.h>
7ac48069 11#include <moira.h>
8defc06b 12#include "mr_private.h"
0fa91a0a 13
7ac48069 14RCSID("$Header$");
15
8defc06b 16int mr_inited = 0;
0fa91a0a 17
00fe263a 18/* the reference to link_against_the_moira_version_of_gdb is to make
19 * sure that this is built with the proper libraries.
20 */
7ac48069 21void mr_init(void)
0fa91a0a 22{
5eaef520 23 extern int link_against_the_moira_version_of_gdb;
24 if (mr_inited)
25 return;
26
27 gdb_init();
28 initialize_sms_error_table();
29 initialize_krb_error_table();
30 link_against_the_moira_version_of_gdb = 0;
31 mr_inited = 1;
0fa91a0a 32}
This page took 0.557971 seconds and 5 git commands to generate.