Commit 1a437cf8829a6fc7847a881ecd3471b22a2591bc
Small fix to the language code in initpaths(): make sure we only allocate langshort once.
git-svn-id: svn://svn.debian.org/svn/pinfo/pinfo/trunk@20 ea4b0d59-4df7-0310-a9f9-bf8cbe41ce66
Author: bas
Author date (UTC): 2005-07-24 23:13
Committer name: bas
Committer date (UTC): 2005-07-24 23:13
Parent(s): 0895968067ed40482e623b575fbd870bb6ea4d9e
Signing key:
Tree: c841db5f6ff39eb19b2b959bdc4667ed7e143429
File src/filehandling_functions.c changed (mode: 100644) (index a4be936..f3b6557) |
... |
... |
initpaths() |
875 |
875 |
lang[i]='\0'; |
lang[i]='\0'; |
876 |
876 |
} |
} |
877 |
877 |
/* if lang is sublocalized (nl_BE or so), also use short version */ |
/* if lang is sublocalized (nl_BE or so), also use short version */ |
878 |
|
if (lang[i]=='_') |
|
|
878 |
|
if (lang[i]=='_' && langshort==NULL) |
879 |
879 |
{ |
{ |
880 |
880 |
langshort = strdup(lang); |
langshort = strdup(lang); |
881 |
881 |
langshort[i] = '\0'; |
langshort[i] = '\0'; |
|
... |
... |
strip_compression_suffix(char *file) /* removes trailing .gz, .bz2, etc. */ |
1154 |
1154 |
} |
} |
1155 |
1155 |
} |
} |
1156 |
1156 |
} |
} |
|
1157 |
|
|