]> diplodocus.org Git - nmh/blobdiff - sbr/oauth.c
Check to see if cross-directory links are supported; if they are not,
[nmh] / sbr / oauth.c
index 8363959..57d4bbb 100644 (file)
@@ -1169,7 +1169,7 @@ parse_json(jsmntok_t **tokens, size_t *tokens_len,
            of the response body. */
         *tokens = mh_xrealloc(*tokens, *tokens_len * sizeof **tokens);
     }
-    if (r == 0) {
+    if (r <= 0) {
         return FALSE;
     }