Fixed invoking make_strings with -L "" option

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@14542 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2002-09-25 00:51:26 +00:00
parent cdd609243e
commit 8be867a144
2 changed files with 20 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Wed Sep 25 02:46:28 2002 Nicola Pero <n.pero@mi.flashnet.it>
* Tools/make_strings/make_strings.m (main): Remove "" languages
from the list of languages before processing.
2002-09-24 Richard Frith-Macdonald <rfm@gnu.org>
* Source/GSTcpHandle.m: ([-handleForPort:beforeDate:]) fix bug where

View file

@ -523,6 +523,21 @@ int main(int argc, char **argv)
argc = j;
}
/* Remove any empty language from the list. */
{
int k;
for (k = [languages count] - 1; k >= 0; k--)
{
NSString *language = [languages objectAtIndex: k];
if ([language isEqualToString: @""])
{
[languages removeObjectAtIndex: k];
}
}
}
if (![languages count])
{
NSLog (@"No languages specified!\n");