octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #52041] imfinfo error when extension specified


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #52041] imfinfo error when extension specified as second argument
Date: Fri, 15 Sep 2017 13:19:51 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Follow-up Comment #3, bug #52041 (project octave):

I can confirm that the simple change suggested works:


diff --git a/scripts/image/imfinfo.m b/scripts/image/imfinfo.m
--- a/scripts/image/imfinfo.m
+++ b/scripts/image/imfinfo.m
@@ -154,7 +154,7 @@ function info = imfinfo (filename, varar
     print_usage ();
   elseif (! ischar (filename))
     error ("imfinfo: FILENAME must be a string");
-  elseif (nargin > 1 && ! ischar (ext))
+  elseif (nargin > 1 && ! ischar (varargin{1}))
     error ("imfinfo: EXT must be a string");
   endif
 


but I would like to add a test case to this. If someone comes up with a test
case faster than I can please share it.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?52041>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]