buf is needed on Windows aswell.
authorPierre Ossman <ossman@cendio.se>
Tue, 10 Jan 2006 09:16:39 +0000 (09:16 +0000)
committerPierre Ossman <ossman@cendio.se>
Tue, 10 Jan 2006 09:16:39 +0000 (09:16 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@440 fefdeb5f-60dc-0310-8127-8f9354f1896f

polyp/util.c

index 569412d..26d7120 100644 (file)
@@ -321,9 +321,9 @@ char *pa_vsprintf_malloc(const char *format, va_list ap) {
 /* Return the current username in the specified string buffer. */
 char *pa_get_user_name(char *s, size_t l) {
     char *p;
+    char buf[1024];
 
 #ifdef HAVE_PWD_H
-    char buf[1024];
     struct passwd pw, *r;
 #endif