From 095ca22f094589e8dc2ce8446779486e0fb4e655 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Tue, 25 Apr 1995 01:19:00 +0000 Subject: [PATCH] * Makefile.in (all): Use ARADD to facilitate incremental rebuilding of library. * configure.in: Add AC_PROG_ARCHIVE_ADD * prof_init.c (profile_get_values): If profile is null return NULL. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5467 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/profile/ChangeLog | 10 ++++++++++ src/util/profile/Makefile.in | 2 +- src/util/profile/configure.in | 1 + src/util/profile/prof_init.c | 5 +++++ 4 files changed, 17 insertions(+), 1 deletion(-) diff --git a/src/util/profile/ChangeLog b/src/util/profile/ChangeLog index 89a08484c..ee809ceab 100644 --- a/src/util/profile/ChangeLog +++ b/src/util/profile/ChangeLog @@ -1,3 +1,13 @@ +Mon Apr 24 17:05:27 1995 Ezra Peisach + + * Makefile.in (all): Use ARADD to facilitate incremental + rebuilding of library. + + * configure.in: Add AC_PROG_ARCHIVE_ADD + + * prof_init.c (profile_get_values): If profile is null return + NULL. + Sat Apr 22 01:25:58 1995 Theodore Y. Ts'o (tytso@dcl) * Makefile.in: Rename profile.h.in to profile.hin to, make things diff --git a/src/util/profile/Makefile.in b/src/util/profile/Makefile.in index 6851a5be0..b13253823 100644 --- a/src/util/profile/Makefile.in +++ b/src/util/profile/Makefile.in @@ -19,7 +19,7 @@ LIBS = ../et/libcom_err.a all:: includes libprofile.a test_parse test_profile libprofile.a: $(OBJS) - $(ARCHIVE) $@ $(OBJS) + $(ARADD) $@ $(OBJS) $(RANLIB) $@ test_parse: test_parse.o $(OBJS) $(LIBS) diff --git a/src/util/profile/configure.in b/src/util/profile/configure.in index 51c259500..d4d905288 100644 --- a/src/util/profile/configure.in +++ b/src/util/profile/configure.in @@ -3,6 +3,7 @@ WITH_CCOPTS CONFIG_RULES AC_SET_BUILDTOP AC_PROG_ARCHIVE +AC_PROG_ARCHIVE_ADD AC_PROG_RANLIB ET_RULES CopyHeader(profile.h,$(BUILDTOP)/include) diff --git a/src/util/profile/prof_init.c b/src/util/profile/prof_init.c index 19bcc1241..9a4a0b533 100644 --- a/src/util/profile/prof_init.c +++ b/src/util/profile/prof_init.c @@ -132,6 +132,11 @@ errcode_t profile_get_values(profile, names, ret_values) init_list(&values); + if (profile == 0) { + *ret_values = 0; + return 0; + } + file = profile->first_file; retval = profile_update_file(file); if (retval) -- 2.26.2