Permalink
Browse files

Merge pull request #53 from seanmcgary/patch-1

Update imagemagick.js
  • Loading branch information...
2 parents f22b58c + 1e53278 commit 891b628be9a46b3da80730edb957e289c53874ca @rsms committed Sep 22, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 imagemagick.js
View
@@ -114,7 +114,7 @@ function parseIdentify(input) {
indent = currentLine.search(/\S/);
comps = currentLine.split(': ');
if (indent > prevIndent) indents.push(indent);
- while (indent < prevIndent) {
+ while (indent < prevIndent && props.length) {
indents.pop();
prop = props.pop();
prevIndent = indents[indents.length - 1];
@@ -128,7 +128,7 @@ function parseIdentify(input) {
prevIndent = indent;
}
}
- return props[0];
+ return prop;
};
exports.identify = function(pathOrArgs, callback) {

0 comments on commit 891b628

Please sign in to comment.