Revision: 4969
          http://tigervnc.svn.sourceforge.net/tigervnc/?rev=4969&view=rev
Author:   bphinz
Date:     2012-08-26 21:04:39 +0000 (Sun, 26 Aug 2012)
Log Message:
-----------
Properly handle zero-length arguments

Modified Paths:
--------------
    trunk/java/com/tigervnc/vncviewer/VncViewer.java

Modified: trunk/java/com/tigervnc/vncviewer/VncViewer.java
===================================================================
--- trunk/java/com/tigervnc/vncviewer/VncViewer.java    2012-08-26 21:02:22 UTC 
(rev 4968)
+++ trunk/java/com/tigervnc/vncviewer/VncViewer.java    2012-08-26 21:04:39 UTC 
(rev 4969)
@@ -127,6 +127,9 @@
 
     // Override defaults with command-line options
     for (int i = 0; i < argv.length; i++) {
+      if (argv[i].length() == 0)
+        continue;
+
       if (argv[i].equalsIgnoreCase("-log")) {
         if (++i >= argv.length) usage();
         System.err.println("Log setting: "+argv[i]);

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Tigervnc-commits mailing list
Tigervnc-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-commits

Reply via email to