Mercurial > noffle
comparison src/configfile.c @ 190:47569cf4ad4a noffle
[svn] fix bug with missing initialization of user name and passwd
| author | enz |
|---|---|
| date | Fri, 05 Oct 2001 16:44:22 +0100 |
| parents | fed1334d766b |
| children | a4e9a20e50e5 |
comparison
equal
deleted
inserted
replaced
| 189:b1b6963fdd63 | 190:47569cf4ad4a |
|---|---|
| 4 The following macros must be set, when compiling this file: | 4 The following macros must be set, when compiling this file: |
| 5 CONFIGFILE | 5 CONFIGFILE |
| 6 SPOOLDIR | 6 SPOOLDIR |
| 7 VERSION | 7 VERSION |
| 8 | 8 |
| 9 $Id: configfile.c 300 2001-08-05 08:24:22Z bears $ | 9 $Id: configfile.c 309 2001-10-05 15:44:22Z enz $ |
| 10 */ | 10 */ |
| 11 | 11 |
| 12 #if HAVE_CONFIG_H | 12 #if HAVE_CONFIG_H |
| 13 #include <config.h> | 13 #include <config.h> |
| 14 #endif | 14 #endif |
| 388 Str dummy, name, user, pass; | 388 Str dummy, name, user, pass; |
| 389 int r, len; | 389 int r, len; |
| 390 ServEntry entry; | 390 ServEntry entry; |
| 391 | 391 |
| 392 memset( &entry, 0, sizeof( entry ) ); | 392 memset( &entry, 0, sizeof( entry ) ); |
| 393 user[ 0 ] = pass[ 0 ] = '\0'; | |
| 393 r = sscanf( line, "%s %s %s %s", | 394 r = sscanf( line, "%s %s %s %s", |
| 394 dummy, name, user, pass ); | 395 dummy, name, user, pass ); |
| 395 if ( r < 2 ) | 396 if ( r < 2 ) |
| 396 { | 397 { |
| 397 logSyntaxErr( line ); | 398 logSyntaxErr( line ); |
