r6953: Many compilers in the build farm don't like static variables initialized with
authorVolker Lendecke <vlendec@samba.org>
Tue, 24 May 2005 07:55:02 +0000 (07:55 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:56:58 +0000 (10:56 -0500)
strlen(..). Jerry, I think this needs another fix. I just want to make the
build farm happy.

Not merging to trunk, this needs further looking at.

Volker
(This used to be commit 4f36e4f4343e56842affa8de495c2258f5d971ad)

source3/registry/reg_printing.c

index a7a89fdc347c2ea7ebc8a7d7e63c729401065c9c..d0de24b7d8dac8e67a4bf3012b4bfa64e098517b 100644 (file)
@@ -55,9 +55,9 @@ static char* trim_reg_path( char *path )
        uint16 key_len = strlen(path);
        uint16 base_key_len;
 
-       static int key_printing_len = strlen( KEY_PRINTING );
-       static int key_printing2k_len = strlen( KEY_PRINTING_2K );
-       static int key_printing_ports_len = strlen( KEY_PRINTING_PORTS );
+       int key_printing_len = strlen( KEY_PRINTING );
+       int key_printing2k_len = strlen( KEY_PRINTING_2K );
+       int key_printing_ports_len = strlen( KEY_PRINTING_PORTS );