* emacsclient.c (main): Don't use uninitialized var.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 16 Apr 2011 21:11:28 +0000 (14:11 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 16 Apr 2011 21:11:28 +0000 (14:11 -0700)
(IS_ANY_SEP): Remove; unused.
(get_current_dir_name): Add an extern decl.

lib-src/ChangeLog
lib-src/emacsclient.c

index e3d7edf..07d51ff 100644 (file)
@@ -1,3 +1,9 @@
+2011-04-16  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * emacsclient.c (main): Don't use uninitialized var.
+       (IS_ANY_SEP): Remove; unused.
+       (get_current_dir_name): Add an extern decl.
+
 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
 
        Fix more problems found by GCC 4.6.0's static checks.
index c5231fb..2aabc52 100644 (file)
@@ -218,10 +218,8 @@ xmalloc (unsigned int size)
 #define IS_DEVICE_SEP(_c_) ((_c_) == DEVICE_SEP)
 #endif
 #endif
-#ifndef IS_ANY_SEP
-#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))
-#endif
 
+char *get_current_dir_name (void);
 
 /* Return the current working directory.  Returns NULL on errors.
    Any other returned value must be freed with free.  This is used
@@ -1524,7 +1522,7 @@ start_daemon_and_retry_set_socket (void)
 int
 main (int argc, char **argv)
 {
-  int rl, needlf = 0;
+  int rl = 0, needlf = 0;
   char *cwd, *str;
   char string[BUFSIZ+1];
   int null_socket_name IF_LINT ( = 0);