Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-projects commit in portage-utils: main.c
Date: Thu, 22 Dec 2011 17:49:29
Message-Id: 20111222174919.1D0B82004B@flycatcher.gentoo.org
1 vapier 11/12/22 17:49:19
2
3 Modified: main.c
4 Log:
5 have the one user pass in an empty string rather than always checking the param
6
7 Revision Changes Path
8 1.213 portage-utils/main.c
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/main.c?rev=1.213&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/main.c?rev=1.213&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/main.c?r1=1.212&r2=1.213
13
14 Index: main.c
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-projects/portage-utils/main.c,v
17 retrieving revision 1.212
18 retrieving revision 1.213
19 diff -u -r1.212 -r1.213
20 --- main.c 22 Dec 2011 17:11:11 -0000 1.212
21 +++ main.c 22 Dec 2011 17:49:19 -0000 1.213
22 @@ -1,7 +1,7 @@
23 /*
24 * Copyright 2005-2008 Gentoo Foundation
25 * Distributed under the terms of the GNU General Public License v2
26 - * $Header: /var/cvsroot/gentoo-projects/portage-utils/main.c,v 1.212 2011/12/22 17:11:11 vapier Exp $
27 + * $Header: /var/cvsroot/gentoo-projects/portage-utils/main.c,v 1.213 2011/12/22 17:49:19 vapier Exp $
28 *
29 * Copyright 2005-2008 Ned Ludd - <solar@g.o>
30 * Copyright 2005-2008 Mike Frysinger - <vapier@g.o>
31 @@ -619,8 +619,6 @@
32 char buf[BUFSIZE], *s;
33
34 /* initialize the base profile path */
35 - if (!configroot)
36 - configroot = "";
37 configroot_len = strlen(configroot);
38 profile_len = strlen(profile);
39 sub_len = 1024; /* should be big enough for longest line in "parent" */
40 @@ -644,7 +642,7 @@
41 s = strtok(buf, "\n");
42 while (s) {
43 strncpy(sub_file, s, sub_len);
44 - read_portage_profile(NULL, profile_file, vars);
45 + read_portage_profile("", profile_file, vars);
46 s = strtok(NULL, "\n");
47 }