/*
- * Copyright (C) 2005-2008 Atsushi Konno All rights reserved.
+ * Copyright (C) 2005-2009 Atsushi Konno All rights reserved.
* Copyright (C) 2005 QSDN,Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
#include "qs_parse_string.h"
#include "qs_log.h"
-
/**
* ignore space
*/
int ii;
char *sp;
+ if (! s) return 0;
+ if (len <= 0) return 0;
sp = (char *)s;
for(ii=0;
qs_ignore_sp_and_quote(Doc *UNUSED(doc), const char *s, int len)
{
int ii;
- char *sp = (char *)s;
+ char *sp = (char *)s;
+
+ if (! s) return 0;
+ if (len <= 0) return 0;
for(ii=0;
*sp && (is_white_space(*sp) || is_quote(*sp)) && ii<len;